fix(curriculum): external sort link in CIP (#46393)

* fix(curriculum): external sort link in CIP

* added forum link
This commit is contained in:
Muhammed Mustafa
2022-06-08 16:44:57 +02:00
committed by GitHub
parent 4e632a5446
commit 0aabd837b7

View File

@@ -8,7 +8,7 @@ dashedName: sort-stability
# --description--
When sorting records in a table by a particular column or field, a [stable sort](https://en.wikipedia.org/wiki/Stable_sort#Stability) will always retain the relative order of records that have the same key.
When sorting records in a table by a particular column or field, a [stable sort](https://www.freecodecamp.org/news/stability-in-sorting-algorithms-a-treatment-of-equality-fa3140a5a539/) will always retain the relative order of records that have the same key.
For example, in this table of countries and cities, a stable sort on the **second** column, the cities, would keep the US Birmingham above the UK Birmingham. (Although an unstable sort *might*, in this case, place the US Birmingham above the UK Birmingham, a stable sort routine would *guarantee* it).