sObject Collections
You can manage sObjects in lists, sets, and maps.
-
Lists can contain sObjects among other types of elements. Lists of sObjects can be used for bulk processing of data.
-
Using the
List.sortmethod, you can sort lists of sObjects. -
Sets can contain sObjects among other types of elements.
-
Map keys and values can be of any data type, including sObject types, such as Account.