mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-07-18 02:24:07 +00:00
sort users
This commit is contained in:
parent
d45ffbf597
commit
59bdfa4eef
1 changed files with 1 additions and 2 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
import 'dart:math';
|
import 'dart:math';
|
||||||
|
|
||||||
import 'package:collection/collection.dart';
|
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||||
|
|
@ -79,7 +78,7 @@ class _PasswordLessRecoverySetupState extends State<PasswordLessRecoverySetup> {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
contacts.sortBy((c) => c.mediaSendCounter);
|
contacts.sort((a, b) => b.mediaSendCounter.compareTo(a.mediaSendCounter));
|
||||||
final verifiedContacts = contacts
|
final verifiedContacts = contacts
|
||||||
.where(
|
.where(
|
||||||
(c) =>
|
(c) =>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue