refactor: sync

This commit is contained in:
shenlong-tanwen
2024-09-15 20:02:09 +05:30
parent 37b15869d5
commit ded4481190
20 changed files with 307 additions and 86 deletions
@@ -0,0 +1,4 @@
extension SortIterable<T> on Iterable<T> {
Iterable<T> sortedBy(Comparable Function(T k) key) =>
toList()..sort((a, b) => key(a).compareTo(key(b)));
}