how to sort array of strings in php? Here strings are the paths. e.g. /root/mandy/a.pdf, b.pdf & c.pdf etc.
I tried with sort() function with it’s parameters, however it’s not working ?
EDIT (based on OP’s comments):
My bad ! I haven’t posted this question correctly. Apologies…
Actually it’s an array of maps [not sure may be array of array] -> array("path => "file_name") & i need to sort it accordingly the file_name.
It works for me.