if you want to sort an array by columns, this is the function to do it. The locale settings are taken into account by this function. When using an array to create a list of keys and values for a select box generator which will consist of states I found using "NULL" as an index and ""(empty value) as a value to be useful: '