There is an array
Array ( [0] => Array ( [nameUser] => Я ) [1] => Array ( [nameUser] => К ) ) It is required to sort it by the nameUser field, so that it will end up
Array ( [1] => Array ( [nameUser] => Я ) [0] => Array ( [nameUser] => К ) ) Source: https://ru.stackoverflow.com/questions/538061/
All Articles
usort()- write your sortingnameUser, which would compare the values of thenameUserfield to return -1, 0 or 1. - Sergiks