Sorting in associative array

How do I sort an associative array based on its key value, in ascending order?

In reply to wiki2k1:

Associative array are already ordered by their index key value. So you need to explain more what you are trying to do with an example.