4 ms·How to ORDER BY using the contents of a column in Postgres6 points by brentjanderson 4y agobrentjanderson 4y agoWe needed a way to selectively order ASC or DESC in a Postgres window function. It turns out you can with CASE statements!