The ksort() function sorts an associative array in ascending order, according to the key.
Sort an associative array in ascending order, according to the key:
Run Example>>