algorithm - Why is an "unstable sort" considered bad -


just wondering if explain why "unstable sort" considered bad? don't see situations matter. care provide one?

if have gui allows people sort on individual columns clicking on column, , use stable sort, people know can multi-column sort on columns a,b,c clicking on columns c,b,a in order. because sort stable, when click on b records equal keys under b still sorted c after clicking on b records sorted b, c. similarly, after click on a, records sorted a, b, c.

(unfortunately, last time tried on microsoft product or other, looked didn't use stable sort, it's not surprising trick not better known).


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -