Browse Source

Fix comparison operator in sort

vishnukvmd 3 years ago
parent
commit
4f21ba0925
1 changed files with 1 additions and 2 deletions
  1. 1 2
      lib/services/remote_sync_service.dart

+ 1 - 2
lib/services/remote_sync_service.dart

@@ -407,8 +407,7 @@ class RemoteSyncService {
 
   void _moveVideosToEnd(List<File> file) {
     file.sort((first, second) {
-      if (first.fileType == FileType.video &&
-          second.fileType == FileType.video) {
+      if (first.fileType == second.fileType) {
         return 0;
       } else if (first.fileType == FileType.video) {
         return 1;