mirror of
https://github.com/seriousm4x/UpSnap.git
synced 2026-07-31 17:38:37 -04:00
fix order by when groups activated
This commit is contained in:
@@ -151,7 +151,7 @@
|
||||
{#each Object.keys(devicesWithGroup).sort( (a, b) => a.localeCompare( b, undefined, { numeric: true, sensitivity: 'base' } ) ) as group}
|
||||
<h1 class="mt-6 mb-4 text-2xl font-bold">{group}</h1>
|
||||
<div class={gridClass}>
|
||||
{#each devicesWithGroup[group] as device}
|
||||
{#each devicesWithGroup[group].sort( (a, b) => a[orderBy].localeCompare( b[orderBy], undefined, { numeric: true, sensitivity: 'base' } ) ) as device}
|
||||
<DeviceCard {device} />
|
||||
{/each}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user