Bubble sort dropped images based on their names
- by user2259784
I have written a simple bubble sort function that sort an array of Image objects based on image names.
For some reason my function is not swapping the elements of array when needed ( basically new assignment is not working)
Here is my code :
listOfFiles = event.dataTransfer.files;
sortImages(listOfFiles);
function…