opencart/opencart — pull request #1033 by pine3ree (2013-11-28 20:20:02+00:00)
Title: REDUNDANT SORTING?

Can anyone confirm?

this
```PHP
array_multisort($sort_order, SORT_ASC, $results);
```

is sorting the $results array already. Inside the $results loop each total model modifies $total_data always appending a new array. So $total_data elements should be already sorted by the corresponding "{model_total}_sort_order".

This is done in many other places.

Can anyone confirm?

regards