---
schema_version: "1"
id: c442060bebcb04a233bc95cc9bbd855b87ee728002298114494124843169bc4f
title: sObject Collections
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexcode/apex_sobject_collections.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_sobject_collections.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 11ec3648ea88cba9b9bfbd9266a16de70ddc3da02c2833cb10c0bb8cd35e1aa8
description: You can manage sObjects in lists, sets, and maps.
---
# sObject Collections

You can manage sObjects in lists, sets, and maps.

- **[Lists of sObjects](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_list_sobject.htm)**  
    Lists can contain sObjects among other types of elements. Lists of sObjects can be used for bulk processing of data.
- **[Sorting Lists of sObjects](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_list_sorting_sobject.htm)**  
    Using the List.sort method, you can sort lists of sObjects.
- **[Expanding sObject and List Expressions](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/langCon_apex_expressions_extending_SObjects.htm)**
- **[Sets of Objects](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_set_sobject.htm)**  
    Sets can contain sObjects among other types of elements.
- **[Maps of sObjects](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_map_sobject.htm)**  
    Map keys and values can be of any data type, including sObject types, such as Account.