Change the display order of the media in gallery