The asort() method is used to sort arrays, without losing the index.
I do the sorting, both in the SQL search and in the array. However, when sending the data via JSON (using json_encode ), it reorders the keys.
Array example, so...
asked by
15.02.2017 / 18:59