[cleanup] I revert the sort call to QuickSort again since it's faster on my machine.