Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

helper latest selecting the oldest instead of the newest record #279

Open
pacogeanu opened this issue Aug 10, 2016 · 0 comments
Open

helper latest selecting the oldest instead of the newest record #279

pacogeanu opened this issue Aug 10, 2016 · 0 comments

Comments

@pacogeanu
Copy link

Usage:
{{> blogLatest num=1}}
blogLatest template is using helper latest, where
latest: ->
num = if @num then @num else 3
Blog.Post.all limit: num
A sort operation in descending order (newest to oldest) must be performed first, before applying the limit.

sasikanth513 added a commit to sasikanth513/meteor-blog that referenced this issue Nov 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants