Finished back end #5 - Sorting Algorithm