From 2d39cb3b3014320f3996b95faddd19dff24d55d1 Mon Sep 17 00:00:00 2001 From: Bruce Martin Date: Thu, 9 Jan 2020 06:33:14 -0800 Subject: [PATCH] sort the embedding names for the UI (#1098) --- client/src/reducers/layoutChoice.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/reducers/layoutChoice.js b/client/src/reducers/layoutChoice.js index 8f64d0e9..0a2cb954 100644 --- a/client/src/reducers/layoutChoice.js +++ b/client/src/reducers/layoutChoice.js @@ -28,7 +28,7 @@ const LayoutChoice = ( case "reset World to eq Universe": { // set default to default const { schema } = nextSharedState.world; - const available = schema.layout.obs.map(v => v.name); + const available = schema.layout.obs.map(v => v.name).sort(); const current = bestDefaultLayout(available); const currentDimNames = schema.layout.obsByName[current].dims; return { available, current, currentDimNames };