-
Notifications
You must be signed in to change notification settings - Fork 519
SObjectStringFieldComparator
albarivas edited this page Nov 30, 2021
·
10 revisions
Comparator that lets you sort a list of SObject alphabetically based on a String field. @example ListUtils.sort(accounts, new SObjectStringFieldComparator('ShippingCountry')); Tip: don't use this to sort by Name as SObjects are already sorted by Name by default when calling List<SObject>.sort()