Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

order by created timestamp #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jr00n
Copy link

@jr00n jr00n commented Jul 23, 2020

Proper ordering by created timestamp

@simplygkgk
Copy link

Still not able to get the order
Please explain.
As suggested by you when i create a 'created' time stamp , i cant see any messages.
please share ASAP

@deepakmkoshy
Copy link

The descending should be false right?
.orderBy('created', descending: false)

instead of

.orderBy('created', descending: true)

@legolegoles
Copy link

Yes. Ascending order is also fine and looks more natural. You can omit the descending parameter altogether.

.orderBy(‘created’)

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

Successfully merging this pull request may close these issues.

4 participants