ui(awards): keep the Followed column sorted alphabetically like Available
This commit is contained in:
@@ -978,7 +978,8 @@ function AwardsSelectionPanel({ profile }: { profile?: { name?: string; callsign
|
|||||||
const needle = q.trim().toLowerCase();
|
const needle = q.trim().toLowerCase();
|
||||||
const available = all.filter((a) => !trackedSet.has(a.code)
|
const available = all.filter((a) => !trackedSet.has(a.code)
|
||||||
&& (needle === '' || `${a.code} ${a.name}`.toLowerCase().includes(needle)));
|
&& (needle === '' || `${a.code} ${a.name}`.toLowerCase().includes(needle)));
|
||||||
const trackedItems = tracked.map((c) => byCode.get(c)).filter(Boolean) as { code: string; name: string }[];
|
const trackedItems = (tracked.map((c) => byCode.get(c)).filter(Boolean) as { code: string; name: string }[])
|
||||||
|
.sort((a, b) => a.code.localeCompare(b.code));
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Reference in New Issue
Block a user