Add an explicit ORDER BY au.id ASC when limiting collections API
calls. This ensures that the same users will be returned on
subsequent calls, assuming no other relevant changes in the data.
Signed-off-by: Jeff Godin <jgodin@tadl.org>
$query->{limit} = $limit;
my $sort_order = $sort || "DESC";
$query->{order_by} = [
- {class => 'ausp', field => 'set_date', direction => $sort_order}
+ {class => 'ausp', field => 'set_date', direction => $sort_order},
+ {class => 'au', field => 'id', direction => 'ASC'}
];
}