Johbo's Notes - Working on the Web
  • About Me
  • Archives

Sort certain result items on top in PostgreSQL

Wed 19 October 2016 by Johannes Bornhold in develop Tags sql / postgres / search

When displaying items based on a database search, one sometimes wants to display a specific set of items at the top or bottom of the result set. Applying the custom order inside of the database query allows to still use LIMIT and OFFSET in a natural way.

more ...

  • Social

    • mastodon
    • matrix
    • github
  • Categories

    • cloud
    • develop
    • event
    • hello
    • macos
    • nixos
    • tools

© 2016 Johannes Bornhold

Back to top