ksort will sort the keys, but not naturally. For instance, say you have keys called:
string1
string2
string10
ksort would sort them as: string1,string10,string2 - which is not what I need. A natural sort would sort them: srting1, string2, string10. I just can't find a natsort function that works for keys.
I was looking at uksort and was thinking I could get that to work, but I was hoping that there was something easier.