sort list solution