Sort update #3

Data sorting is now working.