Skip to content

Commit 34795dc

Browse files
committed
Sort NWB entries by default
1 parent 58d5787 commit 34795dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/explore-section/EphysViewerContainer/nwb-trace.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export default class NWBTrace {
9090
throw new Error('Protocol group not found');
9191
}
9292

93-
const protocols = protocolGroup.keys();
93+
const protocols = protocolGroup.keys().sort();
9494
if (protocols.length === 0) {
9595
throw new Error('No protocols found');
9696
}
@@ -109,7 +109,7 @@ export default class NWBTrace {
109109
throw new Error(`Repetition group for protocol ${protocol} not found`);
110110
}
111111

112-
const repetitions = repetitionGroup.keys();
112+
const repetitions = repetitionGroup.keys().sort();
113113
if (repetitions.length === 0) {
114114
throw new Error(`No repetitions for ${protocol} found`);
115115
}
@@ -128,7 +128,7 @@ export default class NWBTrace {
128128
throw new Error(`Sweep group for ${repetition} not found`);
129129
}
130130

131-
const sweeps = sweepGroup.keys();
131+
const sweeps = sweepGroup.keys().sort();
132132
if (sweeps.length === 0) {
133133
throw new Error(`No sweeps for ${repetition} found`);
134134
}

0 commit comments

Comments
 (0)