Try performing the following query with javascript to get the sorted data but the data are not in the order listed.
var pattern = {};
pattern.id_guardia = "GUA-1383583267122";
pattern.puesto = "CJD";
pattern.parque = "azuqueca";
var options = {};
options.orderby = ["index", "set"];
options.order = ["desc", "asc"];
options.asynchronous = false;
col_trabajadores.listCallback (pattern, options, ok, {});
ok function (result) {alert (JSON.stringify (result))}
Where can be the error?
Attach the results of the query.
Regards.
var options = {};
options.orderby = "index";
options.order = "desc";
options.asynchronous = false;