The ElementComparator is passed by non-const reference in the Array classes, making this code unusable:
sorted.addSorted (ValidatorInfoCompare(), arrayToSort [i]);
Instead, this workaround is needed:
ValidatorInfoCompare compare;
sorted.addSorted (compare, arrayToSort [i]);
This isn’t very JUCE like! Jules I know you’ve got higher standards!