Habtom - 5:03 am on Dec 12, 2011 (gmt 0)
I've not seen all of your lines. But:
$result = mysql_query("SELECT * FROM video_list ORDER BY field_name");
Sorting is done on the query as shown above (replace the field_name with an actual field name on your table)
If you want to the field_name to be different based on your sorting need, you could simply replace field_name with a variable, and use a condition (perhaps if) to help you fill in the right field name in the query.