sort_cmd : SORT variable_usage_expression KW_USING identifier op_sort_limit { expr_str *callback; expr_str_list *params; if (!check_input_or_display_array_variable($2)) { a4gl_yyerror("Variable is not a simple array"); $$=NULL; } else { callback=A4GL_new_expr_fcall($4,NULL,A4GL_compiling_module_basename(),lastlineno, get_namespace($4)); $$=new_sort_cmd($2,callback,$5); } } ; op_sort_limit : {$$=A4GL_new_literal_long_long(0);} | KW_LIMIT fgl_expr_c {$$=$2;} ;