alethes / meteor-pages

Meteor pagination
MIT License
403 stars 84 forks source link

Possible to modify the client side collection with additional fields? #189

Open Broham opened 8 years ago

Broham commented 8 years ago

I have a collection that contains fields like the ones below:

{
   title: "xyz",
   whatever: "blah"
},
{
  title: "ABC"
  whatever: "blah"
}

I'd like to sort on the title field, but I am getting weird results because the sort is not case insensitive. I was hoping to add another field to the collection called lowerTitle which would just be a lowercase version of the title.

Is there a way to do this with Pages? The documentation that I have seen seems to suggest it takes the base collection and uses that. I would prefer not to have these fields on the server side since they are only used for client side sorting.