Fix comparison operator in sort
This commit is contained in:
parent
ec4ae2429b
commit
4f21ba0925
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue