Auto-sort collections on initialization

This PR implements the following change:

When a Collection instance is initialized, if models are passed to the constructor and if a comparator exists on the collection, the collection's `sort` method is automatically called.