Sorting

and some other shit