function compareFilesWithIndices(index1, index2) {
                return entries[index1]._name.toLocaleLowerCase().localeCompare(entries[index2]._name.toLocaleLowerCase());
            }
function compareFilesWithIndices(index1, index2) {
                return entries[index1]._name.toLocaleLowerCase().localeCompare(entries[index2]._name.toLocaleLowerCase());
            }
function compareFilesWithIndices ( index1 , index2 ) { return entries [ index1 ] . _name . toLocaleLowerCase ( ) . localeCompare ( entries [ index2 ] . _name . toLocaleLowerCase ( ) ) ; }
sort entries if required
sort entries if required
Compare files with indices