lastchange sort doesn't work with trigger.get method. There are no difference with "ASC" and "DESC" on sortorder parameter.
- trigger.get with parameter "sortfield":"lastchange" and "sortorder:ASC"
{"jsonrpc":"2.0","result":[
{"triggerid":"22328","state":"0","lastchange":"1389679853","value_flag":"0"},
{"triggerid":"20354","state":"0","lastchange":"1389679853","value_flag":"0"}],"id":1}
- trigger.get with parameter "sortfield":"lastchange" and "sortorder:DESC"
{"jsonrpc":"2.0","result":[
{"triggerid":"22328","state":"0","lastchange":"1389679853","value_flag":"0"},
{"triggerid":"20354","state":"0","lastchange":"1389679853","value_flag":"0"}],"id":1}
- is duplicated by
-
ZBXNEXT-1564 Confusing code part in CTrigger.php
- Closed