Loop hubdb table rows in reverse order

Highlighted
New Contributor

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!

 

Reply
0 Upvotes
1 Reply 1
Regular Contributor
{% for row in hubdb_table_rows('2594592', '&orderBy=-hs_created_at') %}

Notice the '-' symbol