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 next rows with #cat test3 ....
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)
so script need to give successful message and output should go to new file called [url removed, login to view]