[PHP] Sorting multidim array and keeping associations

2004-11-17 Thread Peter Lauri
Best groupmember, I have an multidim array that looks something like this: [40] => [1]=32, [2]=>55, ["total"]=>87 [22] => [8]=2, [7]=>105, ["total"]=>107 [142] => [2]=3, [7]=>8, ["total"]=>11 I want to sort this array according to the "total" and still keep the acc. with the basekey. I know I ca

[PHP] Sorting multidim array and keeping associations

2004-11-17 Thread Peter Lauri
Best groupmember, I have an multidim array that looks something like this: [40] => [1]=32, [2]=>55, ["total"]=>87 [22] => [8]=2, [7]=>105, ["total"]=>107 [142] => [2]=3, [7]=>8, ["total"]=>11 I want to sort this array according to the "total" and still keep the acc. with the basekey. I know I ca