ParentFull threadgr3yh47·that's because that answer is for how to find unique values in an array. it works as intended with any duplicates, stacksort just chose an answer that wasnt only sortingView on HN