Hi i have an array with basic key-value pair and i want to sort it and then get the keys. The array contents are something like this:
arrVal {
123adf45ad ABCD.1
aldfhr435d ABCD.9
lkh45q9er4 ABCD
1234dartf4 ABCD4
}
So basically my array keys are some kind of encrypted ids and the values are a string values. Since i cannot sort array based on its keys i did something like this:
foreach {key in array..} {
lappend mylist [$arrVal($key)];
}
set mylist [lsort $mylist];
now for the sorted list i want to extract the array keys against those values. I couldn't find any command that can extract the array keys based on its values. Any help?