(#1356) Fix end of changes detection
Handle changes with {descending: true} correctly