October 10, 2013 at 10:35 /
Well it orders by type of condition and not as of the price mode. The code to change that, but keep a good ground order, won’t be easy to make. Maybe just order it by priority, for that I can give you a code 😉
1 2 3 4 5 |
foreach($filters as $key => $filter) { $filters[] = $filter; $order[$key] = $filter['imp']; } array_multisort($order, SORT_ASC, SORT_NUMERIC, $filter); |
Regards