HubDB & Hubl: Sort by most recently added with &orderBy=-hs_created_at

CR Rollyson
Nov 2, 2020

--

No long story. You know it’s available, but documentation is all over the board with mixed verbiage and gets a little tricky to reason out query params — orderBy + createdAt.

Turns out there is a prefix and a minus to flip the order to most recent.

Try this:

{% for row in hubdb_table_rows(‘name_of_hubdb’, ‘&orderBy=-hs_created_at’) %}

Good luck √ Hope this helps + Pass it on

CR Rollyson is a Digital User Experience & Web Manager for a S&P 500 Fintech company and is the COO of Side Role, a marketing team in Charlotte North Carolina partnering with In-house Teams & Agencies, Non-profits, and Start-Ups. Learn more about Side Role here.

--

--

CR Rollyson
CR Rollyson

Written by CR Rollyson

I lead initiatives to enhance customer engagement and digital strategy. 16+ years specializing in integrating emerging technologies to drive business growth.

No responses yet