enhanced audio and video gallery sorting