Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Rename next and prev to getOlder and getNewer respectively #129

Open
morleyzhi opened this issue Dec 6, 2019 · 0 comments
Open

Rename next and prev to getOlder and getNewer respectively #129

morleyzhi opened this issue Dec 6, 2019 · 0 comments

Comments

@morleyzhi
Copy link
Contributor

From @fnando:

Right now, it uses next() and prev(), but this is tricky because it depends on sorting; by default, prev() fetches newer records, next() fetch older records. If you sort as asc, then is the opposite. What if use actually use older() and newer() instead? Then the semantics would always be the same in both cases.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant