Fix comparison operator in sort

This commit is contained in:
vishnukvmd 2021-12-23 12:04:03 +05:30
parent ec4ae2429b
commit 4f21ba0925

View file

@ -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;