Top "Asort" questions

This is a PHP function to sort arrays.

Associatively sorting a table by value in Lua

I have a key => value table I'd like to sort in Lua. The keys are all integers, but aren't …

sorting lua lua-table asort
Sort associative array with AWK

Here's my array (gawk script) : myArray["peter"] = 32 myArray["bob"] = 5 myArray["john"] = 463 myArray["jack"] = 11 After sort, I need the following result : …

awk gawk asort
sorting a column in a PHP array

I am trying to sort by a column(s) in the following data structure that I have built like this: $…

php arrays asort ksort
Sort an array with special characters in PHP

I have an array that holds the names of languages in spanish: $lang["ko"] = "coreano"; //korean $lang["ar"] = "árabe"; //arabic $…

php setlocale asort
multi dimensional array sorting by string

I'm breaking my head trying to figure out how to do this right, I have this multi dimensional array: Array ( [0] =&…

php multidimensional-array asort
PHP sort array alphabetically

I'm struggling on this one. I have an array that contains countries and regions. I want to sort both sets …

php multidimensional-array sorting asort