Reputation: 161
I have a function which returns an observableArray
function refreshRoom(room) {
return entityQuery.fromEntities(room)
.expand('messages, userRooms.user')
.using(manager).execute()
.then(querySucceeded)
.fail(queryFailed);
}
Here is the content of the array
I want to be able to orderBy "Created" property, which is dependentObservable from the "Messages" observable. As u can see from the above code, I expand "Messages" from my Room entity.
I tried to achieve this with orderBy('messages.created')
but obviously that doesn't work.
So how can I order my messages according the "Created" property?
Upvotes: 0
Views: 47