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) { void _moveVideosToEnd(List<File> file) {
file.sort((first, second) { file.sort((first, second) {
if (first.fileType == FileType.video && if (first.fileType == second.fileType) {
second.fileType == FileType.video) {
return 0; return 0;
} else if (first.fileType == FileType.video) { } else if (first.fileType == FileType.video) {
return 1; return 1;