Fixes pagination with time and vertical searching

Tests running [here](http://buildbot.oceanobservatories.org:8010/builders/coi_any/builds/98)