How can I make the first column in a table default to sort by date?

  • 1
  • Question
  • Updated 5 years ago
  • Answered
Photo of Michael Marshall

Michael Marshall

  • 362 Points 250 badge 2x thumb

Posted 6 years ago

  • 1
Photo of John Nelson

John Nelson, Product Manager

  • 3,356 Points 3k badge 2x thumb
Official Response
Hey Mike,

If you want to set a default order for your table you do it in the advanced properties for the model the table is using.

1. With the model selected, open up the Advanced Properties pane.
2. Enter the field you'd like the model's records to be ordered by (it's basically a SOQL ORDER BY clause without the "order by").

Then, if you want your users to be able to change that order at runtime you can set the allow ordering property for the date field.

1. Select the field within the table.
2. Check the Allow Ordering property.

Then you should end up with something like this with the ordering arrows on the table already set to your default order by: