Sorting an array based on its value
- by MaxerDude
I have an Array,
Sample:
$array {
[0] {
[something]=1;
[something2]=2;
}
[1] {
[something]=2;
[something2]=4;
}
[2] {
[something]=5;
[something2]=2;
}
}
I want to order the array based on the key something;
So it will look like:
$array {
[0] {
[something]=5;
[something2]=2;
}
[1] {
[something]=2;
[something2]=4;
}
[2] {
[something]=1;
[something2]=2;
}
}