Jump to content

Stable sort

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Taw (talk | contribs) at 16:39, 29 October 2001 (format fix). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

A stable sort is a sorting algorithm that does not change the relative order of elements that have the same value. This is important for some algorithms (for example, radix sort).


Some common stable sorts are:


Many other sorting algorithms can be specially implemented to be stable sorts.