CMS Development

Suonpera
Mitglied

Loop hubdb table rows in reverse order

lösung

Hey Friends,

 

Currently using this to loop through a table
{% for row in hubdb_table_rows('2594592', 'GET') %}

 

But I need it in the reverse order, so I can display the most recent rows first. 

How do I do that?

Couldn't find any similar examples in the documentation.

 

Thanks!

 

0 Upvotes
1 Akzeptierte Lösung
prosa
Lösung
Stratege/Strategin

Loop hubdb table rows in reverse order

lösung
{% for row in hubdb_table_rows('2594592', '&orderBy=-hs_created_at') %}

Notice the '-' symbol

If this post helped you resolve your issue, please consider marking it as the solution. Thank you for supporting our HubSpot community.

Lösung in ursprünglichem Beitrag anzeigen

1 Antwort
prosa
Lösung
Stratege/Strategin

Loop hubdb table rows in reverse order

lösung
{% for row in hubdb_table_rows('2594592', '&orderBy=-hs_created_at') %}

Notice the '-' symbol

If this post helped you resolve your issue, please consider marking it as the solution. Thank you for supporting our HubSpot community.