Hi guys. I'm sort of stuck trying to add a "Sort by Message" item in the compiler messages. I've needed to do it when linting a big number of javascript files (the lint is my "compiler"
). And there were tons of trivial errors that I wanted to tackle. And I said: Why not sort the compiler messages by the error message?
So, I began writing the code, when suddenly...
WX_DECLARE_OBJARRAY(CompileError, ErrorsArray);
How on Earth do you sort a wxWhateverObjArray? I googled and searched the wxWidgets documentation, and there's no such thing as WX_DECLARE_SORTED_OBJARRAY.
Any ideas?
(Also, do we still have to rely on the WX_DECLARE macros? We're in 2011 and the STL are supported everywhere)