initial sort logic
field sort working