Concept Flow - Sorting Stability and When to Use Which Sort
Start with unsorted array
Choose sorting algorithm
Check if stability needed?
Yes→Use stable sort
Use unstable sort
Sort array
Sorted array with/without stability
Done
Start with an unsorted list, decide if you need to keep equal items' order (stability), then pick a stable or unstable sort accordingly, and finally get the sorted list.
