Created two sorting methods and tested both.