Hi,
I got an array that I couldn't be able to sort. The array is something like:
ar[0]: drwxrwxrwx 524 01-May-2003 index.html
ar[1]: drwx-w-r-- 554532 01-May-2003 sport.html
ar[2]: dr-xr--xr-- 5008 01-May-2003 debet.html
ar[3]: drwxrwxr-x 1232 01-May-2003 My File.html
I want to sort this array depending on the file name so that it should be sorted as:
dr-xr--xr-- 5008 01-May-2003 debet.html
drwxrwxrwx 524 01-May-2003 index.html
drwxrwxr-x 1232 01-May-2003 My File.html
drwx-w-r-- 554532 01-May-2003 sport.html
But unfortunitly, it is sorted depending on the permission and not the file name.
I've stripped out everything except the file name, then I do sort, but this is not what I need, what I need is sorting the whole array
Thx