mirror of
https://github.com/javl/image2cpp.git
synced 2026-07-28 04:05:35 +00:00
sort files
This commit is contained in:
+3
-1
@@ -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 ?
|
||||
|
||||
Reference in New Issue
Block a user