i need a php script that will oder those rows from this file example: [url removed, login to view]
so i need
order by #cat groups
example all files that have #cat test1 will be first then all files with #cat test3 .... example like this
also order by #time asc desc and random.
if is checked time but also category is checked then will order like this but inside groups so #cat order will not reorder
if is checked just time without cat then will order just based on #time
i atached a image please see what i want, (its my idea maybe u have u own style u can use it)