added missing sort for collections.