From 406ffb4dd3ea88b4374a673f9dc4e034536029f3 Mon Sep 17 00:00:00 2001 From: Alex Martzios Date: Fri, 24 Jun 2022 12:51:17 +0300 Subject: [PATCH] subjects page: add sort function for subjects before grouping --- src/app/subjects/subjects.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/subjects/subjects.component.ts b/src/app/subjects/subjects.component.ts index e5422b2..02adab6 100644 --- a/src/app/subjects/subjects.component.ts +++ b/src/app/subjects/subjects.component.ts @@ -148,6 +148,7 @@ export class SubjectsComponent { //this.getDivContents(); this.getPageContents(); this.subjects = community.subjects; + this.subjects.sort(); this.groupSubjects(); this.showLoading = false; }