The sort is now working
Cleaning up the sort function
Moved the sort functions to their proper module