|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Sorting
Hi,
Please help me with sorting an array. I have an array with these elements:a, a/a, a/a/a After applying the sort() function to the array, the elements is in this order: a/a/a, a/a, a But that is not the result I want. Instead, it should be sorted like the former. Thanks in advance. ![]() |
|
#2
|
|||
|
|||
|
ive never actually used the sort function before, but from what ive heard it can be a bit of a bitch, the only thing i can suggest is trying
URL sorry i cant help you any further |
|
#3
|
|||
|
|||
|
why don't you use rsort?
http://www.php.net/manual/en/function.rsort.php it's the same thing but reverse so that should give you what you want. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Sorting |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|