Added sorting from CollectionViewController.

Changed location of sorting method.