# Keep the server's order within sortIndex ties \(\#211\) · dara/icarus

[View on GitCafe](https://git.cafe/dara/icarus/commit/a8b34ce51ed0796c1dd72f696628d740c5def698)

Repository: [dara/icarus](https://git.cafe/dara/icarus)

Visibility: public

Requested revision: a8b34ce51ed0796c1dd72f696628d740c5def698

Requested commit: a8b34ce51ed0796c1dd72f696628d740c5def698

Commit: a8b34ce51ed0796c1dd72f696628d740c5def698

Tree: 9a5347c6389563bc10b7edf473d72b20c8eb2765

Author: Dara Adedeji

Committer: GitHub

## Message

```
Keep the server's order within sortIndex ties (#211)

Dart's List.sort is not stable, so on a page with more than 32 elements
tied rows could swap stacking between two loads of the same data. Sort
elements, lineups, and pages with a stable merge sort instead.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
```

## Parents

- [e881a0713a3ba5c61d21fc011521d0b1f36860d5](https://git.cafe/dara/icarus/commit/e881a0713a3ba5c61d21fc011521d0b1f36860d5?format=markdown)

[Source at this commit](https://git.cafe/dara/icarus/tree/a8b34ce51ed0796c1dd72f696628d740c5def698?format=markdown)
