It is currently not possible to have pagination for descending ordering of liststreamitems which is a common cause, for example if you have an audit trail you want to display the newest entries when you load it. The problem is there is no way to know which start value to use if the total item count is not known.
Since ascending ordering is working because the start value 1 can be used a good solution would be to add a new parameter order were ascending or descending could be provided and then for descending the start value of 1 would be the newest entry instead of the oldest.
It is currently not possible to have pagination for descending ordering of
liststreamitems
which is a common cause, for example if you have an audit trail you want to display the newest entries when you load it. The problem is there is no way to know which start value to use if the total item count is not known.Since ascending ordering is working because the start value 1 can be used a good solution would be to add a new parameter
order
wereascending
ordescending
could be provided and then fordescending
the start value of 1 would be the newest entry instead of the oldest.