|
|
| version 1.102, 2001/08/10 07:10:17 | version 1.103, 2001/08/10 07:13:07 |
|---|---|
| Line 441 static void _sort(Request& r, const Stri | Line 441 static void _sort(Request& r, const Stri |
| Value& key_maker=params->as_junction(0, "key-maker must be code"); | Value& key_maker=params->as_junction(0, "key-maker must be code"); |
| bool reverse=params->size()==2/*..[desc|asc|]*/? | bool reverse=params->size()==2/*..[desc|asc|]*/? |
| reverse=params->as_no_junction(1, "order must not be code").as_string()=="asc": | reverse=params->as_no_junction(1, "order must not be code").as_string()=="desc": |
| false; | true; |
| Table& old_table=static_cast<VTable *>(r.self)->table(); | Table& old_table=static_cast<VTable *>(r.self)->table(); |
| Table& new_table=*new(pool) Table(pool, &method_name, old_table.columns()); | Table& new_table=*new(pool) Table(pool, &method_name, old_table.columns()); |