started different approach to sorting
even nicer approach
some change
removed unused stuff
added reverse order functions