Ordering, a Scala language concept
Last updated
In Scala, the 'Ordering' type is a 'type class' that contains methods to determine an ordering of specific types.
Custom orderings can be created and composed
The 'Ordering' type class is very powerful because complex orderings can be achieved from small parts, and they can even be context-specific.
To learn more about Type Classes go to: Type Class.