Comment Comment by gr3yh47 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 sorting parent gr3yh47 8 years ago