Use a simpler generic comparator for sorts