diff options
| author | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-10 23:09:05 -0400 |
|---|---|---|
| committer | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-11 01:38:43 -0400 |
| commit | 4021d7846ce164f3f0c3cb37d3a1d82d2de489d9 (patch) | |
| tree | 5b8f998b8e34b581039bc0ed3c871624c25e15e7 /app/node_modules/okquery/index.js | |
| parent | 1eff07c9c2ca5b61a28a1037a586d25c3791d67b (diff) | |
Give views sorted resources
Diffstat (limited to 'app/node_modules/okquery/index.js')
| -rw-r--r-- | app/node_modules/okquery/index.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/node_modules/okquery/index.js b/app/node_modules/okquery/index.js index 89c8b73..9cc8b78 100644 --- a/app/node_modules/okquery/index.js +++ b/app/node_modules/okquery/index.js @@ -96,7 +96,8 @@ function queryDynamic(resource) { function queryAll(resource) { return function() { - return resource.all(); + // Always return sorted results + return resource.sortBy('__index'); }; } |
