Added sorting (Fixes #15)
This commit is contained in:
		@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
@@ -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 =>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user