Commit cce444a8 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5storage: add sort capacity

parent 391e48d5
......@@ -394,7 +394,8 @@
ERP5Storage.prototype.hasCapacity = function (name) {
return ((name === "list") || (name === "query") ||
(name === "select") || (name === "limit"));
(name === "select") || (name === "limit") ||
(name === "sort"));
};
ERP5Storage.prototype.buildQuery = function (options) {
......@@ -412,7 +413,8 @@
query: options.query,
// XXX Force erp5 to return embedded document
select_list: options.select_list || ["title", "reference"],
limit: options.limit
limit: options.limit,
sort_on: options.sort_on
}),
"xhrFields": {
withCredentials: true
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment