Here is the array. What I want is I wanna sort the array on the basis on 'income_difference' in ascending order. If possible, I just want 3 data with least income difference.
array:5 [▼
0 => array:4 [▼
"month" => "11"
"income_times" => 2
"income_amount" => 52300
"income_difference" => 49000
]
1 => array:4 [▼
"month" => "10"
"income_times" => 1
"income_amount" => 50000
"income_difference" => 46700
]
2 => array:4 [▼
"month" => "09"
"income_times" => 1
"income_amount" => 5000000
"income_difference" => 4996700
]
3 => array:4 [▼
"month" => "08"
"income_times" => 1
"income_amount" => 50000
"income_difference" => 46700
]
4 => array:4 [▼
"month" => "06"
"income_times" => 1
"income_amount" => 5200
"income_difference" => 1900
]
]