Renamed stack sort to list sort