Sort a collection of integers