sort associative array by key

dsmith ds at nomail.com
Fri Nov 23 10:09:10 PST 2012


What is the best way to have a function sort an associative array 
by key?  The following yields a conversion error.

double[string] aa_sort(double[string] aa) {
   return aa.keys.sort;
}




More information about the Digitalmars-d-learn mailing list