finished sorting for lists