INSTANCE property

OrderComparator INSTANCE
final

Singleton instance of the OrderComparator.

This instance is used throughout the JetLeaf framework for consistent ordering behavior. It's thread-safe and can be shared across the application.

Usage:

// Use the singleton instance directly
items.sort(OrderComparator.INSTANCE.compare);

// Or use the convenience methods
OrderComparator.sortList(items);

Implementation

static final OrderComparator INSTANCE = OrderComparator();