--- parser3/src/classes/table.C 2001/08/10 07:10:17 1.102 +++ parser3/src/classes/table.C 2001/08/10 10:45:50 1.104 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) */ -static const char *RCSId="$Id: table.C,v 1.102 2001/08/10 07:10:17 parser Exp $"; +static const char *RCSId="$Id: table.C,v 1.104 2001/08/10 10:45:50 parser Exp $"; #include "pa_config_includes.h" @@ -441,8 +441,8 @@ static void _sort(Request& r, const Stri Value& key_maker=params->as_junction(0, "key-maker must be code"); bool reverse=params->size()==2/*..[desc|asc|]*/? - reverse=params->as_no_junction(1, "order must not be code").as_string()=="asc": - false; + reverse=params->as_no_junction(1, "order must not be code").as_string()=="desc": + false; // default=asc Table& old_table=static_cast(r.self)->table(); Table& new_table=*new(pool) Table(pool, &method_name, old_table.columns());