Browse Source

Sort face search response most recent first

Vishnu Mohandas 5 years ago
parent
commit
d6f34d00c2
1 changed files with 3 additions and 0 deletions
  1. 3 0
      lib/face_search_manager.dart

+ 3 - 0
lib/face_search_manager.dart

@@ -54,6 +54,9 @@ class FaceSearchManager {
         photos.add(photo);
       }
     }
+    photos.sort((first, second) {
+      return second.createTimestamp.compareTo(first.createTimestamp);
+    });
     return photos;
   }