[sword-devel] Sort a MultiMapWithDefault by value?

Joachim Ansorg sword-devel@crosswire.org
Mon, 26 Aug 2002 08:35:56 +0200


Thank you! Otherwise I'd tried it many times :)

Joahim

> > 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?
>
> std::map (as well as std::set) is _always_ sorted in the order of _keys_.
> So it is impossible to change the order.