Done the first sorting methods, also removed some useless imports