Title: Row Order
Author: Tobias Bäthge
Published: December 1, 2022
Last modified: June 4, 2025

---

Order the rows in different ways when a table is shown!

# 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](https://tablepress.org/modules/column-order/).

## Feature description

Here are examples for different row order types:

### Normal order

This is an example table:

  |  Name | Year | Country | Sport |  
   |  Eric | 1986 | Sweden | Soccer |  
 |  Julia | 1991 | Germany | Basketball |  
 |  Adam | 2002 | Indonesia | Golf |  
 |  Kim | 1986 | Chile | Badminton |  
 |  Jackson | 1998 | Australia | Baseball |

### Random order

This is the same table but in a randomized order:

  |  Name | Year | Country | Sport |  
   |  Kim | 1986 | Chile | Badminton |  
 |  Julia | 1991 | Germany | Basketball |  
 |  Adam | 2002 | Indonesia | Golf |  
 |  Eric | 1986 | Sweden | Soccer |  
 |  Jackson | 1998 | Australia | Baseball |

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:

  |  Name | Year | Country | Sport |  
   |  Jackson | 1998 | Australia | Baseball |  
 |  Kim | 1986 | Chile | Badminton |  
 |  Adam | 2002 | Indonesia | Golf |  
 |  Julia | 1991 | Germany | Basketball |  
 |  Eric | 1986 | Sweden | Soccer |

### Manual order

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

  |  Name | Year | Country | Sport |  
   |  Eric | 1986 | Sweden | Soccer |  
 |  Kim | 1986 | Chile | Badminton |  
 |  Julia | 1991 | Germany | Basketball |

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

[Use this feature with a TablePress Premium plan today](https://tablepress.org/pricing/?output_format=md)

## 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.](https://tablepress.org/wp-content/uploads/2024/11/
row-order-block.png)

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](https://tablepress.org/faq/configuration-parameter-reference/)
in the “TablePress Table” [block](https://tablepress.org/faq/documentation-tablepress-table-block/),
the Elementor widget, or in the [Shortcode](https://tablepress.org/faq/documentation-shortcode-table/)
that you are using to embed the table:

  |  Module | Slug |  | Configuration parameter | Name | Description | Type | Default value |  
   |  Row Order | row-order |  | row_order | Row Order | Desired row order for a pre-ordering.
  Possible values are Default, Random, Reverse, Sort, and Custom. | enum (`default`, `random`,`reverse`, `sort`, or `manual`) | `default` |  
 |  Row Order | row-order |  | row_order_manual_order | Row Order Custom Order | List of columns in the desired order, if “custom” is configured for the Row Order. | string | `""` (empty string) |  
 |  Row Order | row-order |  | row_order_sort_column | Row Order | The columns which shall be sorted on, if “sort” is configured for the Row Order. | string | `""` (empty string) |  
 |  Row Order | row-order |  | row_order_sort_direction | Row Order | The order direction which shall be used when sorting, if “sort” is configured for the Row Order. | enum (`asc` or `desc`) | `asc` |

The “Row Order” feature module is part of the [**TablePress Premium plans**](https://tablepress.org/pricing/?output_format=md).

**On this page**

 1. [Feature description](https://tablepress.org/modules/row-order/#feature-description)
 2.  a. [Normal order](https://tablepress.org/modules/row-order/#feature-description-normal-order)
     b. [Random order](https://tablepress.org/modules/row-order/#feature-description-random-order)
     c. [Reversed order](https://tablepress.org/modules/row-order/#feature-description-reversed-order)
     d. [Manual order](https://tablepress.org/modules/row-order/#feature-description-manual-order)
 3. [Usage instructions](https://tablepress.org/modules/row-order/#instructions)
 4. [Configuration parameters](https://tablepress.org/modules/row-order/#configuration)