Skip to content

Commit e243711

Browse files
committed
sort wall display by name, sciencegroup already does this
1 parent d9283ff commit e243711

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/components/TargetStation.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ export default function TargetStation({
1111
instruments: Array<instListEntryWithRunstatePVandValue>;
1212
beamCurrent: number | null | undefined;
1313
}) {
14+
instruments = instruments.sort((instrumenta, instrumentb) =>
15+
instrumenta.name.localeCompare(instrumentb.name),
16+
);
1417
return (
1518
<div className="flex flex-col justify-center items-start w-full">
1619
<h1 className="w-full text-left text-gray-600 dark:text-gray-200 font-semibold text-md mt-2 py-2 ">

0 commit comments

Comments
 (0)