sort workitems