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