I'm looking to order my upload files in a specific order. I believe the default is a random upload order, but I would like to change this based on the file name, which I'm having difficulty with.
The file names would be for example;
'01 smiley'
'02 dog'
'03 cat'
Currently I used a 'Drag & Drop' multiple file upload although this just uploads in any random order, I'd like to upload it by numeric order.
Code so far (upload code works, just the order needs work)...
$count = count($sort['upload']['name']);
$in=0;
while($in<$count)
{
//upload here
$in++;
}
I think I need to sort()? before my while loop, but having difficulty getting this correct. How would I be able to sort each file into a correct order.
Many thanks.