Laur's blog
  • Home
  • About
  • Support my work
Sign in Subscribe

ascending

A collection of 1 post
TIL you can mix ASC, DESC in ORDER BY (SQLite)
ascending

TIL you can mix ASC, DESC in ORDER BY (SQLite)

TL;DR: You can use ORDER BY column1 DESC, column2 ASC ... in your code. The other day I was trying to get a custom ordering in a list for an object: * order decreasing by UNREAD MESSAGES count and then * order ascending by DATE Initially, I tried a GROUP BY, but
Nov 4, 2015 1 min read
Page 1 of 1
Laur's blog © 2025
  • Sign up
Powered by Ghost