docs icon indicating copy to clipboard operation
docs copied to clipboard

Undefined sort order of transactions

Open futureshape opened this issue 9 years ago • 3 comments
trafficstars

API doc should clarify if /transactions always returns a list of transactions sorted in chronological order, or if the order is not guaranteed

futureshape avatar Nov 30 '15 22:11 futureshape

Hey @futureshape. At the moment the transactions returned from /transactions are loosely k-sorted, as they are sorted by ID which increments based on the time, however this isn't guaranteed to be sorted by wall clock time due to clock skew. I'll update the docs, and see if we can sort them in the response by the time returned in the created field too.

mattheath avatar Jan 19 '16 11:01 mattheath

Also, it would be great to have a parameter for sorting the transactions ASC / DESC by creation date.

pawelad avatar Sep 14 '17 18:09 pawelad

+1 @pawelad

mrlubos avatar Mar 17 '19 00:03 mrlubos