putting in sort ordering
Got sorting working