Why does a sorting process only work when variation is present in a population?

http://en.wikipedia.org/wiki/Sorting

If you have all one kind of any particular thing, what would you sort? In other words, variation is necessary for sorting; otherwise, there's no need.