Jump to content

Category:Stable sorts

From Wikipedia, the free encyclopedia

This is the current revision of this page, as edited by Rogerdpack (talk | contribs) at 04:28, 11 April 2020 (add link). The present address (URL) is a permanent link to this version.

(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Stable sorting algorithms maintain the relative order of records with equal keys (i.e. values). That is, a sorting algorithm is stable if whenever there are two records R and S with the same key and with R appearing before S in the original list, R will appear before S in the sorted list. See here for a more complete description.