ngrx entity why order matters

42 Views Asked by At

Currently I'm studying ngrx entity and I read in this blog post, that with this feature, we basically say, that our entities are like database tables. But I don't unterstand one thing. Why is there a focus on the order in the collections? Because if I have a database, I don't care about the order in the table, I just select the data in the order I want it. And that could be maybe done the ngrx way via selectors too.

1

There are 1 best solutions below

0
timdeschryver On

You're right. The order is of no importance for entities. If you want to sort results, this can better be done in the selector (or component).