I have the following array structure:
[
[
"configuration_id" => 10,
"id" => 1,
"optionNumber" => 3,
"optionActive" => 1,
"lastUpdated" => "2010-03-17 15:44:12"
],
[
"configuration_id" => 9,
"id" => 1,
"optionNumber" => 2,
"optionActive" => 1,
"lastUpdated" => "2010-03-17 15:44:12"
],
[
"configuration_id" => 8,
"id" => 1,
"optionNumber" => 1,
"optionActive" => 1,
"lastUpdated" => "2010-03-17 15:44:12"
]
]
What is the best way to order the array in an incremental way, based on the optionNumber?
So the results look like:
[
[
"configuration_id" => 8,
"id" => 1,
"optionNumber" => 1,
"optionActive" => 1,
"lastUpdated" => "2010-03-17 15:44:12"
],
[
"configuration_id" => 9,
"id" => 1,
"optionNumber" => 2,
"optionActive" => 1,
"lastUpdated" => "2010-03-17 15:44:12"
],
[
"configuration_id" => 10,
"id" => 1,
"optionNumber" => 3,
"optionActive" => 1,
"lastUpdated" => "2010-03-17 15:44:12"
]
]