sort the embedding names for the UI (#1098)

This commit is contained in:
Bruce Martin
2020-01-09 06:33:14 -08:00
committed by GitHub
parent 18177b108f
commit 2d39cb3b30
+1 -1
View File
@@ -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 };