[sword-devel] Sort a MultiMapWithDefault by value?
Troy A. Griffitts
sword-devel@crosswire.org
Sun, 25 Aug 2002 13:22:02 -0700
Joachim,
I was under the impression that SWConfig already alphabetically sorted
entries. I don't, off the top of my head, know which STL function to
use to sort a map (if, indeed, it isn't iterated in order), but it
should be fairly obvious. Maybe creating a list from the map and
passing the list to sort() and then iterating the list to get the key
values for the map in order? Not sure. Let me know if you still need
help and I'll look into it.
-Troy.
Joachim Ansorg wrote:
> Hi!
>
>
> How do I sort a MultiMapWithdefault (alnmost the same as MutliMap :) by value?
> Is it possible to save the map in the correct order using SWConfig?
>
> Thank you!
>
> Joachim
>