Closed awhitford closed 4 years ago
Minor documentation bug for Ordering class. The example:
var natural = new Ordering.natural(); natural.compare(1, 2); // 1
Wouldn't the compare result be -1 signifying that 1 is less than 2?
-1
Thank you for reporting. The example was not only buggy, but it also was no longer working with Dart 2.0+.
Minor documentation bug for Ordering class. The example:
Wouldn't the compare result be
-1
signifying that 1 is less than 2?