sortedByDesc method

Iterable<E> sortedByDesc(
  1. Comparable? key(
    1. E? e
    )
)

Sort list desc use to Comparable colums

Implementation

Iterable<E> sortedByDesc(Comparable? key(E? e)) =>
    toList()..sort((b, a) => key(a)?.compareTo(key(b)) ?? 1);