* ajax handling for sorting