A few days ago on xkcd.com a comic was published about inefficient sorting methods. Alt-text to him told about the sorting method StackSort, which is to download from StackOverflow blocks of code that can be found on request "sort the list" and run one by one until you find a workable version. Rave? Still not nonsense! Meet the Gitchhab JavaScript implementation of StackSort .Answers work:
stackoverflow.com/questions/12137690/javascript-sort-sparse-array-keep-indexes#12137767
stackoverflow.com/questions/14761032/infinite-recursion-in-javascript-quicksort#14761203
stackoverflow.com/questions/8175093/simple-function-to-sort-a-json-object-using-javascript # 8175221
stackoverflow.com/questions/9280360/javascript-function-returning-unique-values-sorted-by-count#9280565
Partially working answers:
stackoverflow.com/questions/1359761/sorting-a-javascript-object#1359808
Answers do not work (among those that started and returned an array):
stackoverflow.com/questions/4833651/javascript-array-sort-and-unique#4833835
stackoverflow.com/questions/5326880/sort-array-keys-by-value#5327363
Completed 6 pages, then it turned out: "Out of answers from StackOverflow!"
To all the answers there are badly received comments about StackSort. :)
Source: https://habr.com/ru/post/173333/
All Articles