This commit is contained in:
Neeraj Gupta 2022-05-26 15:56:53 +05:30
parent 67fdadabce
commit 6791773845
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -467,10 +467,10 @@ class RemoteSyncService {
});
// move updated files towards the end
file.sort((first, second) {
if (first.updationTime == null && second.updationTime == null) {
if (first.updationTime == second.updationTime) {
return 0;
}
if (first.updationTime == null) {
if (first.updationTime == -1) {
return 1;
} else {
return -1;