This video demonstrate How to Sorting Associative Array Keys with ksort() and krsort(). The ksort() and krsort() is the same way as asort() and arsort(), in that they sort arrays in ascending and descending order, respectively, preserving the associations between keys and values.