That’s a very good idea. In fact, the existing IntegerElementComparator is almost exactly the same thing - I ought to clean that up and give it a more generic name. Not sure why I didn’t do so in the first place, that’s very old code…
Once again I’ve been fooled by the documentation. Searching for comparator doesn’t return this class.
Hopefully, you’ll release soon (please also update your copy of doxygen, new version have a javascript based search module).
Anyway, there’s a nice trick to use only one operator : if (first < second) elif (second < first) else equal, so it’s a small step for a class, but it’s a giant leap for class designer.
…erm, that’s not what it says in my copy! Are you quoting from a really old version or something? Get up to date, there’s no excuse for not moving up to 1.52 now!