sort files

This commit is contained in:
Vitaly Domnikov
2023-01-29 12:26:12 -08:00
parent c17fb10e0b
commit e590cbdb71
+3 -1
View File
@@ -951,7 +951,9 @@
// Handle selecting an image with the file picker
function handleImageSelection(evt){
var files = evt.target.files;
var files = Array.from(evt.target.files);
files.sort((a, b) => a.name > b.name);
onlyImagesFileError.style.display = "none";
files.length > 0 ?