Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upOrder by a calculated value. #1908
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sbwtw commentedNov 7, 2018
I want select some items order by the relative timestamp, the sql like this:
select title, time from articles order by ABS(time - TIMESTAMP('2018-01-01')) asc limit 10;it's works in mysql but I don't know how to do in diesel (without hard code raw sql).