Fixed a bug with sorting the collections.