- determines a unique sort order (as per uniqueOrder) and uses that to reorder the list and possibly truncate it.