sort lists; needs cleaning