Hi.
I have the following data:
Array (
[0] => Array (
[filename] => def
[filesize] => 4096
[filemtime] => 1264683091
[is_dir] => 1
[is_file] =>
)
[1] => Array (
[filename] => abc
[filesize] => 4096
[filemtime] => 1264683091
[is_dir] => 1
[is_file] =>
)
[2] => Array (
[filename] => rabbit
[filesize] => 4096
[filemtime] => 1264683060
[is_dir] => 0
[is_file] =>
)
[3] => Array (
[filename] => owl
[filesize] => 4096
[filemtime] => 1264683022
[is_dir] => 0
[is_file] =>
)
)
and I would like to sort it by more than one value. (e.g. by is_dir AND by filename (alphabetically) or by filemtime AND by filename, etc.)
So far I've tried many solutions, none have which worked.
Does anyone know the best PHP algorhythm/function/method to sort this like so?