diff --git a/src/routes/plc/PdsDistribution.svelte b/src/routes/plc/PdsDistribution.svelte index ad8a2b1..a04584d 100644 --- a/src/routes/plc/PdsDistribution.svelte +++ b/src/routes/plc/PdsDistribution.svelte @@ -13,7 +13,6 @@ {:else if stats.current} (async () => { pdsDistribution: distribution .entries() .map((d) => ({ key: d[0], value: d[1] })) - .toArray(), + .toArray() + .sort((a, b) => + a.key === 'Other' || b.key === 'Other' ? -1 : b.value - a.value, + ), history: Object.entries(raw.history) .map(([date, d]) => ({ date: new Date(date),