code: function compareFilesWithIndices(index1, index2) {
                  return entries[index1]._name.toLocaleLowerCase().localeCompare(entries[index2]._name.toLocaleLowerCase());
              }
docs: sort entries if required