Sorting on null values
v1.0.2 -
This week's minor release has addressed an odd behaviour in pagination.
Request format
Pagination can loop eternally when sorting with a start
value of "null". If the total number of resources with "null" value on the sort
attribute exceeds the returned page's count
, then next
will also be "null".
To resolve this strange behaviour, a "null" value in start
is now treated as " " (empty string). All resources with a "null" value are omitted from the result set. Pagination is applied to the remaining resources (non-null) according to the supplied sort
and reverse
arguments.