Merge pull request #9151 from UncleAlbie/dialog-sort

Sort files in dialog by name.
This commit is contained in:
Morris Jobke 2018-05-07 18:39:24 +02:00 committed by GitHub
commit 43c1e51a5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -847,7 +847,7 @@ var OCdialogs = {
} else if(a.type !== 'dir' && b.type === 'dir') {
return 1;
} else {
return -(a.mtime - b.mtime);
return a.name.localeCompare(b.name, undefined, {numeric: true});
}
});