Skip to content

Commit

Permalink
closes #27
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Apr 29, 2024
1 parent 9fbe420 commit bc9a2f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/faq.service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { inject, Injectable, signal, type WritableSignal } from '@angular/core';
import { sortBy } from 'lodash';
import type { ICardFAQ, ICardFAQEntry } from '../../interfaces';
import { LocaleService } from './locale.service';
import { MetaService } from './meta.service';
Expand Down Expand Up @@ -43,7 +44,7 @@ export class FAQService {
const faqData = await fetch(faq.url);
const realData = await faqData.json();

baseFAQs[faq.productId][faq.locale] = realData;
baseFAQs[faq.productId][faq.locale] = sortBy(realData, 'card');

this.faqByProductIdAndLocale.set({
...this.faqByProductIdAndLocale(),
Expand Down

0 comments on commit bc9a2f7

Please sign in to comment.