mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Sort files in dialog by name.
Signed-off-by: Patrik Novotný <patrik.novotny@gmx.com>
This commit is contained in:
parent
d4aa4ff1f4
commit
e977246d7c
1 changed files with 1 additions and 1 deletions
|
|
@ -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});
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue