# reverseOrder<T> static method

Comparator<T> reverseOrder<T>()

Creates a comparator that compares `Comparable` objects in reverse (descending) order.

### Example

    final comp = Comparator.reverseOrder<String>();
    final list = ['a', 'c', 'b'];
    list.sort(comp.compare);
    print(list); // [c, b, a]

## Implementation

    static Comparator<T> reverseOrder<T>() => _NaturalOrderComparator<T>().reversed();