We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ce8133 commit 6bcad7cCopy full SHA for 6bcad7c
1 file changed
src/app/components/body/variables/data/table/modal/edit/edit.component.ts
@@ -51,10 +51,15 @@ export class EditComponent {
51
}>();
52
allGroups = input.required<{ [groupID: string]: VariableGroup }>();
53
allGroupsArray = computed(() => {
54
- return Object.keys(this.allGroups());
+ const groups = Object.keys(this.allGroups());
55
+ const alphabetizedGroups = groups.sort((a, b) => {
56
+ const labelA = this.allGroups()[a].labl;
57
+ const labelB = this.allGroups()[b].labl;
58
+ return labelA.localeCompare(labelB);
59
+ });
60
+ return alphabetizedGroups;
61
});
62
decodedVariableGroups = computed(() => {
- // console.log(this.variableGroups());
63
const varGroups: string[] = [];
64
Object.values(this.allGroups()).map((group) => {
65
varGroups.push(group.labl);
0 commit comments