Complete rewrite for SortLists