Vladimir Kotal wrote:
>
> Hi all,
>
> Anyone knows if there is any way how to get the cycle below to work on
> *sorted* list of associative array indexes ?
>
> options["pre-RTI"]="-aACDlmptnr"
> options["fast-nondebug"]="-mn"
> ...
>
> for item in ${!options[*]}; do
> do-something-with ${options[${item}]}
> done
I figured that the indexes are sorted by default (can someone confirm
?). My problem was that ${options[${item}]} was a list which needed to
be sorted.
v.
