revise the show list sorting algorithm