I would like to know how to put the videos in first position when there is a video on the gallery! Please


I use this code, but...

PHP Code:
Only registered members can view the code

I prefer to put the videos of the gallery first to avoid adding code and weighing the page, Thank you