Update test_next_previous to use "dateTaken,asc" sorting

Fixed functional test failure introduced by recent sort changes