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

query.OrderBy working fine for DESC but not for ASC #349

Open
huzaifamk opened this issue Dec 24, 2022 · 0 comments
Open

query.OrderBy working fine for DESC but not for ASC #349

huzaifamk opened this issue Dec 24, 2022 · 0 comments

Comments

@huzaifamk
Copy link

I have a Quotes table, there is a created_at time, in the format of DATETIME, I am using the line

query = query.OrderBy(Quotes.created_at DESC")

Which totally works fine, but when I use it as

query = query.OrderBy(Quotes.created_at ASC")

It is throwing error, I need it in both order as it is necessary, can anybody recommend a fix or something that will help? Thanks!

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

No branches or pull requests

1 participant