# iahmadezzat/apex-list-sort architecture

> Architecture diagram of the GitHub repository iahmadezzat/apex-list-sort, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/iahmadezzat/apex-list-sort
- Repository: https://github.com/iahmadezzat/apex-list-sort

## Overview

Sortable is a small reusable Salesforce Apex utility: a caller passes an SObject list and field name to sortAscending() or sortDescending(), then uses the returned sorted list. The README documents sorting text, number, date, and time fields. No source excerpts were provided, so the graph reflects only the documented API and usage.

Main entry points: [`src/classes/Sortable.cls`](https://github.com/iahmadezzat/apex-list-sort/blob/master/src/classes/Sortable.cls) (Sortable sorter)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_caller(("Apex caller"))
node_sortable["Sortable sorter<br/>[Sortable.cls]"]

node_caller -->|"calls sort"| node_sortable
node_sortable -->|"returns sorted list"| node_caller

click node_sortable "https://github.com/iahmadezzat/apex-list-sort/blob/master/src/classes/Sortable.cls"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_caller toneIndigo
class node_sortable toneTeal
```

## Components

### Other components

- **Apex caller**
- [Sortable sorter](https://github.com/iahmadezzat/apex-list-sort/blob/master/src/classes/Sortable.cls): `src/classes/Sortable.cls`

## Connections

- Apex caller → Sortable sorter: calls sort (evidence: `README.md`)
- Sortable sorter → Apex caller: returns sorted list (evidence: `README.md`)
