mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 08:46:18 +01:00
Add sortedBySelf to Iterable of Comparables
This commit is contained in:
parent
8bf709e10b
commit
e0f1b679f0
1 changed files with 4 additions and 0 deletions
|
@ -112,3 +112,7 @@ extension IterableFlattenExtension<T> on Iterable<Iterable<T>> {
|
|||
/// This function originated in the xml package
|
||||
Iterable<T> flatten() => expand((values) => values);
|
||||
}
|
||||
|
||||
extension IterableComparableExtension<T extends Comparable<T>> on Iterable<T> {
|
||||
List<T> sortedBySelf() => sortedBy((e) => e);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue