Row Order

For some tables, it can be useful to show the rows in random, reversed, sorted, or manually chosen order each time.

The same is possible for columns using the Column Order feature module.

Feature description

Here are examples for different row order types:

Normal order

This is an example table:

NameYearCountrySport
Eric1986SwedenSoccer
Julia1991GermanyBasketball
Adam2002IndonesiaGolf
Kim1986ChileBadminton
Jackson1998AustraliaBaseball

Random order

This is the same table but in a randomized order:

NameYearCountrySport
Adam2002IndonesiaGolf
Jackson1998AustraliaBaseball
Kim1986ChileBadminton
Julia1991GermanyBasketball
Eric1986SwedenSoccer

This is a good way to prevent that some rows get more “attention”, e.g. when showing reviews or products.

Reversed order

This is the same table but in automatically reversed order:

NameYearCountrySport
Jackson1998AustraliaBaseball
Kim1986ChileBadminton
Adam2002IndonesiaGolf
Julia1991GermanyBasketball
Eric1986SwedenSoccer

Manual order

This is the same table but with only rows 2, 5, and 3 shown, in that order.

NameYearCountrySport
Eric1986SwedenSoccer
Kim1986ChileBadminton
Julia1991GermanyBasketball

With this, it’s possible to show only some desired rows of a table in a desired order.

Usage instructions

To use these features with your tables, activate the “Row Order” feature module on the “Modules” screen of TablePress Pro or TablePress Max. Then, configure the desired options in the “Row Order” section of the “Settings” sidebar of the table’s “TablePress table” block when editing the post or page with the table, or use the configuration parameters from below.

The available settings for the Column Order module in the "Settings" sidebar of the "TablePress table" block.
The available settings for the Column Order module in the “Settings” sidebar of the “TablePress table” block.

Configuration parameters

To configure this module’s features, you can also use these configuration parameters in the “TablePress Table” block, the Elementor widget, or in the Shortcode that you are using to embed the table:

ModuleSlugConfiguration parameterNameDescriptionTypeDefault value
Row Orderrow-orderrow_orderRow OrderDesired row order for a pre-ordering.

Possible values are Default, Random, Reverse, Sort, and Custom.
enum (default, random,reverse, sort, or manual)default
Row Orderrow-orderrow_order_manual_orderRow Order Custom OrderList of columns in the desired order, if “custom” is configured for the Row Order.string"" (empty string)
Row Orderrow-orderrow_order_sort_columnRow OrderThe columns which shall be sorted on, if “sort” is configured for the Row Order.string"" (empty string)
Row Orderrow-orderrow_order_sort_directionRow OrderThe order direction which shall be used when sorting, if “sort” is configured for the Row Order.enum (asc or desc)asc