cube icon indicating copy to clipboard operation
cube copied to clipboard

Order Events by time/data fields.

Open sbuss opened this issue 13 years ago • 2 comments

Events can be ordered by the time or any of its data fields by adding an 'order=field' parameter to the query. 'order=-time' is the default.

Descending order can be specified by prepending "-" to the field name.

If the ordering field is "time" the field name is transformed to "t", otherwise it is transformed to "d.{field_name}".

Fixes #79

(Resubmitting with the correct git user, sorry for the noise)

sbuss avatar Jul 08 '12 09:07 sbuss

I'm not much of a JS developer so it took me some time to wrap my head around all of the callbacks in the unit tests, but I managed to write some tests for events. The tests even exposed a problem in my pull request.

sbuss avatar Jul 08 '12 22:07 sbuss

Is there anything I might change with this PR to help it get merged?

sbuss avatar Jul 24 '12 04:07 sbuss