We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 631fdb5 commit 7415701Copy full SHA for 7415701
lib/controller/file_manager_controller.dart
@@ -31,6 +31,14 @@ class FileManagerController extends ChangeNotifier {
31
return willNotGoToParent;
32
}
33
34
+ List<FileSystemEntity> sort(SortBy sort, List<FileSystemEntity> entitys) {
35
+ if (sort == SortBy.name) {
36
+ entitys
37
+ .sort((a, b) => a.path.toLowerCase().compareTo(b.path.toLowerCase()));
38
+ return entitys;
39
+ } else if (sort == SortBy.date) {}
40
+ }
41
+
42
/// Open directory by providing Directory.
43
void openDirectory(FileSystemEntity entity) {
44
if (entity is Directory) {
0 commit comments