squirrel icon indicating copy to clipboard operation
squirrel copied to clipboard

query.OrderBy working fine for DESC but not for ASC

Open huzaifamk opened this issue 3 years ago • 0 comments

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!

huzaifamk avatar Dec 24 '22 18:12 huzaifamk