I'm using ngrx with angular 9 in my web app. Currently im using the sortCompare function in the reducer like this:
export const adapter : EntityAdapter<Visitor> = createEntityAdapter<Visitor>({
sortComparer: sortByLastMessage
});
All is good, however im wondering whether i should be sorting on the component side along with *ngFor loop, or keep it in the reducer. Just a question regarding the best practice.