I want to create a directory list using this array example and I wanna sort it to 2 column sort, filename ASC and type DESC. Currently I have this directory sorted to filename ASC only using javascript.
Does someone have better idea how to do it? Php array sort or javascript.
Thanks a lot for your help!
Array
(
[Music] => Array
(
[size] => 4096
[mode] => 16877
[type] => 2
[atime] => 1503581347
[mtime] => 1504775242
[filename] => Music
)
[Videos] => Array
(
[size] => 4096
[mode] => 16877
[type] => 2
[atime] => 1501249251
[mtime] => 1502733819
[filename] => Videos
)
[Desktop] => Array
(
[size] => 4096
[mode] => 16877
[type] => 2
[atime] => 1501249251
[mtime] => 1502733819
[filename] => Desktop
)
[file.zip] => Array
(
[size] => 5084312
[mode] => 33188
[type] => 1
[atime] => 1504773615
[mtime] => 1504773620
[filename] => file.zip
)
Expected Output :
FILENAME | TYPE
Desktop | 2
Music | 2
Videos | 2
file.zip | 1