Always sort IDs tab ascending by device type, not just when searching
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
da17f95a33
commit
b4e3a7d6ff
@ -82,9 +82,9 @@
|
||||
if (idSearchQuery.trim()) {
|
||||
const q = idSearchQuery.trim().toLowerCase();
|
||||
ids = ids.filter(d => d.id.toLowerCase().includes(q) || d.svg.toLowerCase().includes(q));
|
||||
// Sort ascending by device type (svg suffix)
|
||||
ids.sort((a, b) => a.svg.localeCompare(b.svg) || a.id.localeCompare(b.id));
|
||||
}
|
||||
// Always sort ascending by device type, then by ID
|
||||
ids.sort((a, b) => a.svg.localeCompare(b.svg) || a.id.localeCompare(b.id));
|
||||
return ids;
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user