Changed node comparator callback signature to signature of strcmp and strcasecmp.
So we can easily use these methods