diff --git a/src/config.js b/src/config.js index ff16aea..6d7d7f2 100644 --- a/src/config.js +++ b/src/config.js @@ -61,7 +61,7 @@ function addMapping(key, directory) { let mappings = new Map(JSON.parse(localStorage.getItem('mappings')) || []); statusLine.innerHTML = (mappings.has(key) ? "Changed" : "Added") + ` mapping '${key}' - '${directory}'`; mappings.set(key, directory); - localStorage.setItem('mappings', JSON.stringify(Array.from(mappings.entries()))); + localStorage.setItem('mappings', JSON.stringify(Array.from(mappings.entries()).sort())); renderMappings(); }