> But a map should not need any call to Sort, because it's the map's task to organize its data structure in such a way that Find does work as it should.
TFPGMap seems to inherit its original sin: as long as it's a container that implements key-value based storage, then it's a map. And there it is, TFPGMap is created as a descendant of TFPSMap which in turn is a descendant of TFPSList. The last one is the source of Sort/IndexOf/whatever that normally doesn't apply to map containers. Sometimes I find it useful, though. So I don't really have a problem with it. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/fgl-unit-bug-in-generic-class-TFPGMap-tp5720282p5720400.html Sent from the Free Pascal - General mailing list archive at Nabble.com. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal