Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save i-Hun/5866692 to your computer and use it in GitHub Desktop.
Save i-Hun/5866692 to your computer and use it in GitHub Desktop.
Не сразу понял, как в meteor выполнить сортировку по вложенным свойствам. Надо всего лишь взять их в кавычки:
Events.find({}, {sort: {"properties.title": 1}});
Это правило применимо к mongoDB в целом.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment