Skip to content

Commit ed45c64

Browse files
committed
feat: upgraded version + tags will now be sorted in alphabetical order
1 parent 16d631f commit ed45c64

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 2,
33
"name": "KeepCode",
4-
"version": "0.2.2",
4+
"version": "0.3.0",
55
"description": "Prep smarter for coding interviews: KeepCode tracks your LeetCode progress so you can focus on solving.",
66
"permissions": ["storage", "tabs", "activeTab", "https://leetcode.com/*"],
77
"background": {

options/options.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,13 @@ document.addEventListener('DOMContentLoaded', () => {
7979
}
8080
});
8181
tagFilter.innerHTML = '<option value="all">All Tags</option>';
82-
Array.from(tagSet).forEach(tag => {
83-
const opt = document.createElement('option');
84-
opt.value = tag;
85-
opt.textContent = tag;
86-
tagFilter.appendChild(opt);
82+
Array.from(tagSet)
83+
.sort((a, b) => a.localeCompare(b))
84+
.forEach(tag => {
85+
const opt = document.createElement('option');
86+
opt.value = tag;
87+
opt.textContent = tag;
88+
tagFilter.appendChild(opt);
8789
});
8890
// Initial render
8991
renderProblems(problems, tagFilter.value, searchInput.value);

0 commit comments

Comments
 (0)