persistence.js is an asynchronous Javascript database mapper library. You can use it in the browser, as well on the server (and you can share data models between them).
Allows to use .order('parent.field') after .prefetch('parent'). Example from my project code:
ZCard.all().prefetch('brand').order('brand.name').forEach(function (card) {});
Allows to use .order('parent.field') after .prefetch('parent'). Example from my project code: ZCard.all().prefetch('brand').order('brand.name').forEach(function (card) {});