#Am I using array_sort wrong ?
1 messages · Page 1 of 1 (latest)
What if you multiple it by 100 .. just out of curiosity... Also in the parking lot on my phone so I can't test anything
need to use sign() on the return i believe i.e.
return sign(_elem1.priority - _elem2.priority);
this has caught me out many times, including recently
oooooooooooooh
I think it's the documentation exemple that mislead me, I skipped over the fact that the array in the exemple only contains values that are one apart (and not missing any)
yep
worth messaging matharoo about it ?
bug report i think