Hi there, I am creating an app where a user sees a list that needs to be sorted alphabetically. The app is offered in two languages, so the translate
pipe needs to be integrated into it in some way.
This is my current code:
<ion-list>
<ion-item *ngFor="let f of foods">
<p>{{ f.name | translate }}</p>
</ion-item>
</ion-list>
Is there any way I can sort them alphabetically (using f.name
) in both languages using a pipe or something similar?
Let me know if I need to clarify anything.
Thank you.