sort the media collection