Resources can be requested with the ?order=[-]<column> syntax. So, for instance:
/api/v0/monitors?order=name will return all monitors sorted by name in ascending order
/api/v0/monitors?order=-name will return all monitors sorted by name in DESCENDING order
/api/v0/monitors will return all monitors with unspecified ordering.
The manage/monitor page now requests the list of reports with ?order=timestamp so that it is guaranteed to receive the reports in the correct order - when received out of order there were issues with D3 visualization.
Internally, rem-sql translates an ordering parameter into the SQL postfix:
ORDER BY <column> (ASC | DESC)
Resources can be requested with the
?order=[-]<column>
syntax. So, for instance:/api/v0/monitors?order=name
will return all monitors sorted by name in ascending order/api/v0/monitors?order=-name
will return all monitors sorted by name in DESCENDING order/api/v0/monitors
will return all monitors with unspecified ordering.The manage/monitor page now requests the list of reports with ?order=timestamp so that it is guaranteed to receive the reports in the correct order - when received out of order there were issues with D3 visualization.
Internally, rem-sql translates an ordering parameter into the SQL postfix:
ORDER BY <column> (ASC | DESC)