Sorting Help
Posted: Mon Jan 14, 2008 6:43 am
I have an array that looks like this:
and I am looking to sort this by the grossRake DESC. Is there some internal php function that I can use to sort it by that or should I start pumping out some custom sorting code for that? Sorry if this is a easy to answer question, im super jetlagged and thus very tired.
Code: Select all
[0] => Array
(
[rowClass] => table-row-one
[username] => ********
[grossRake] => 344.60
[deductions] => 0
[deductionsStyle] => color: black;
[netRake] => $344.60
[rakeback] => $130.95
[rakebackPercent] => 38%
)
[1] => Array
(
[rowClass] => table-row-two
[username] => ********
[grossRake] => 56.77
[deductions] => 0
[deductionsStyle] => color: black;
[netRake] => $56.77
[rakeback] => $21.57
[rakebackPercent] => 38%
)
[2] => Array
(
[rowClass] => table-row-one
[username] => ********
[grossRake] => 2.00
[deductions] => 0
[deductionsStyle] => color: black;
[netRake] => $2.00
[rakeback] => $0.76
[rakebackPercent] => 38%
)
[3] => Array
(
[rowClass] => table-row-two
[username] => ********
[grossRake] => 72.84
[deductions] => 0
[deductionsStyle] => color: black;
[netRake] => $72.84
[rakeback] => $27.68
[rakebackPercent] => 38%
)