I just had a question about the use of Redux-ORM's orderBy function. So I have a selector like this:
export const select = createSelector( orm.Entity.orderBy("id", "desc") );
However, when I try to use it in my mapStateToProps I get an error message:
orderBy is not a function
How is orderBy properly used when selecting an array of an entity type?
Try the following using a 'Custom result function':
export const select = createSelector(orm, session => session.Entity.all().orderBy("id", "desc"))
Activity
Shrugsy commentedon Jul 27, 2020
Try the following using a 'Custom result function':