style(rules): sort boards alphabetically

This commit is contained in:
tomcasaburi
2026-03-11 19:04:22 +08:00
parent 1960e99b82
commit 0105dd0a0f
+3 -1
View File
@@ -131,7 +131,9 @@ const BoardSelector = ({
<div className={styles.selectorRow}> <div className={styles.selectorRow}>
<select value={selectedAddress} onChange={handleSelectChange} className={styles.boardSelect}> <select value={selectedAddress} onChange={handleSelectChange} className={styles.boardSelect}>
<option value=''>Select board...</option> <option value=''>Select board...</option>
{directories.map((sub) => { {[...directories]
.sort((a, b) => getBoardShortCode(a.title).localeCompare(getBoardShortCode(b.title)))
.map((sub) => {
const shortCode = getBoardShortCode(sub.title); const shortCode = getBoardShortCode(sub.title);
const boardName = getBoardName(sub.title); const boardName = getBoardName(sub.title);
return ( return (