anchor.diff:  
   %% sort=fieldname
   %% Order by a given field. Putting a '-' in front of the field name reverts the ordering.
  -parse_query([{sort, Sort}|Rest], Context, Result) ->
  -    Sort1 = case is_atom(Sort) of
  -                true -> atom_to_list(Sort);
  -                false -> Sort
  -            end,
  -    parse_query(Rest, Context, add_order(Sort1, Result));
  +parse_query([{sort, _Sort}|Rest], Context, Result) ->
  +    parse_query(Rest, Context, Result);
   
   %% custompivot=tablename
   %% Add a join on the given custom pivot table.
  
positive.code: 
  %% Add an ORDER clause.
  add_order("seq", Search) ->
      add_order(proplists:get_value(edge, Search#search_sql.tables) ++ ".seq", Search);
  add_order(Sort, Search) ->
      Clause = case Sort of 
                   "random" ->
  
negative.code:                         tables=[{rsc, "rsc"}]},
      Query1 = filter_empty(Query),
      R = parse_query(Query1, Context, Start),
      %% add any sort terms
      R1 = parse_sort(Query1, R),
      %% add default sorting
      add_order("-rsc.id", R1).
  
  
  
  parse_request_args(Args) ->
  