Here is the update of the latest patch from #12 🐛 Does not work with more than 2 query parameters Fixed
Changes:
As this fragment
return $a_weight > $b_weight;
isn't equivalent to
return ($a_weight > $b_weight) ? -1 : 1;
for callback in uasort function, the correct variant has been added:
return ($a_weight > $b_weight) ? 1 : -1;