OGE logoOGE

Sorting & Paging

Click a header to sort; Shift+click chains a multi-sort; a third click clears it. All 10,000 rows are processed client-side — the same interactions drive LoadOptions against a remote source.

sorting paging pageSizes
10.000 rows multi-sort stateKey
Id
First Name
Last Name
Department
City
Salary
Hire Date
1
Can
Kaya
HR
Ankara
86000
2021-06-24
2
Mert
Kılıç
Sales
İstanbul
75000
2023-06-07
3
Emre
Aydın
Engineering
İzmir
32000
2021-08-01
4
Deniz
Arslan
Engineering
İstanbul
105000
2017-01-06
5
Emre
Yılmaz
Engineering
İzmir
83000
2019-10-09
6
Zeynep
Kılıç
Support
İzmir
48000
2017-08-06
7
Can
Doğan
Finance
Antalya
37000
2017-04-03
8
Ayşe
Kaya
Engineering
Ankara
73000
2024-06-27
9
Deniz
Öztürk
Sales
Bursa
46000
2021-11-03
10
Selin
Arslan
Support
İzmir
82000
2020-10-04
11
Deniz
Demir
HR
Antalya
92000
2018-08-10
12
Elif
Demir
Engineering
Bursa
58000
2024-11-13
13
Emre
Aydın
Engineering
Antalya
46000
2022-11-03
14
Emre
Kaya
Finance
Ankara
48000
2022-09-07
15
Deniz
Şahin
Engineering
Antalya
63000
2021-11-10
10000 rows

Notes

  • Sorting is stable: rows with equal keys keep their relative order, so multi-sort chains behave predictably.
  • null/undefined values always sort last in ascending order; string comparison is case-insensitive and numeric-aware ("item2" < "item10").
  • The sort indicator shows the chain position (¹, ²) when more than one column is sorted.
  • Disable clearing with [sorting]="{ allowUnsorting: false }", or globally via provideOgeGridConfig.
  • This demo has stateKey="docs-sorting" — sort a column, reload the page, and the state comes back (localStorage by default, pluggable via OGE_STATE_STORAGE).
  • Right-click any header for the built-in menu: sort, pin, hide.