Adding On-Demand Sorting
This allows a user to sort the collection by calling sort() and passing it the filter comparator.