# reverseSort static method

void reverseSort(

1. List<Object> list

)

Sorts a list in reverse order according to annotation-aware rules.

This method sorts the list using the standard annotation-aware ordering and then reverses it, resulting in descending order (highest order values first).

### Parameters:

- `list`: The list to sort in reverse order

### Use Cases:

- Processing components in reverse order for cleanup/shutdown
- Implementing LIFO (Last-In-First-Out) processing patterns
- Dependency resolution where dependents should process before dependencies

### Example:

    final processors = [
      Class<FirstProcessor>(),   // @Order(1)
      Class<LastProcessor>(),    // @Order(100)
      Class<MiddleProcessor>()   // @Order(50)
    ];

    AnnotationAwareOrderComparator.reverseSort(processors);

    // Order: LastProcessor (100), MiddleProcessor (50), FirstProcessor (1)
    for (final processor in processors) {
      print(processor.getSimpleName());
    }

## Implementation

    static void reverseSort(List<Object> list) {
      list.sort(AnnotationAwareOrderComparator().whenCompared);
      list = list.reversed.toList();
    }