# Most Played, Then A to Z: Stable and Built-In Sorts

List songs by artist, then by title, with your language's built-in sort, and keep songs that tie in the order the user chose: why sorting twice scrambles them in C#, and the promise a sort has to make to keep that order, stability.

![Cheat sheet: Most Played, Then A to Z: Stable and Built-In Sorts](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/faca97ea65a74ec8bed0500f86a5cf3d.webp)

- Category: Data Structures
- Level: Journeyman
- Tags: data structures, Linearithmic Time, Sort Key (data-structures), Sorting Algorithm, Stable Sort
- Updated: November 3, 2026

Source: https://www.ask-codey.com/cheat-sheets/ds-built-in-sort-cheat-sheet
