Sorting 

You might wanna add some more comments and also remove some comments. However my Sorting function is pretty solid.