finished sorting methods