Array
(
[strMachineGroupID] => MC000027
[strMachineGroup] => 1
[April-201904_QTY] => 1
[February-201902_QTY] => 1
[January-201901_QTY] => 1
[July-201907_QTY] => 1
[June-201906_QTY] => 1
[March-201903_QTY] => 1
[May-201905_QTY] => 1
[strMachineGroupIDUE] => MC000027
[April-201904_UE] => 1.00
[February-201902_UE] => 1.00
[January-201901_UE] => 1.00
[July-201907_UE] => 1.00
[June-201906_UE] => 1.00
[March-201903_UE] => 1.00
[May-201905_UE] => 1.00
)
This one my array in my query result. I wanted to sort this array so that the result will be show index in monthly order(january to december).
I want that january ill be next to each other as well as other months.
I tried using:
// $value = (array)$value;
// print_r($value);
// print_r(asort($value));
// print_r(krsort($value));
// print_r(ksort($value));
But they did work. Im still working on this one.
Any idea that does this will really help.