diff --git a/src/app/formulaManager/formulaManager.component.ts b/src/app/formulaManager/formulaManager.component.ts index 7d0bb8e..2a53d92 100644 --- a/src/app/formulaManager/formulaManager.component.ts +++ b/src/app/formulaManager/formulaManager.component.ts @@ -27,7 +27,7 @@ export class FormulaManagerComponent { } constructor(private db: AngularFirestore, public electron: ElectronService) { - this.formulas = this.db.collection('formulas').valueChanges(); + this.formulas = this.db.collection('formulas', ref => ref.orderBy('name')).valueChanges(); } displayFormula(formula) { diff --git a/src/app/store/categories.component.ts b/src/app/store/categories.component.ts index 668d913..5c42b9d 100644 --- a/src/app/store/categories.component.ts +++ b/src/app/store/categories.component.ts @@ -34,7 +34,7 @@ export class CategoriesComponent { if (!this.category) this.breadcrumb.clear(); this.categories = this.db - .collection('categories') + .collection('categories', ref => ref.orderBy('name')) .valueChanges() .pipe( map(rows =>