Long tables are easier to use when visitors can put the rows in the order they need, such as by name or by category.

The Table Sortable option of the Table widget from The Plus Addons for Elementor adds a sort arrow to each column header. One click sorts the column.

To check the complete feature overview documentation of The Plus Addons for Elementor Table widget, click here.

Requirement – This widget is a part of The Plus Addons for Elementor, make sure it’s installed & activated to enjoy all its powers.

Before You Start

  • Edition: Free — this works in the free plugin; Pro is not needed.
  • Widget to enable: Table, switched on under The Plus Addons > Widgets.
  • A table with a header row. Sorting uses the first header row.

How to Enable Sorting

  1. Add the Table widget to your page and fill in your table.
  2. Open Extra Settings in the Content tab.
  3. Turn on Table Sortable.
  4. Publish the page and click a column header on the live page to test it.
Table sortable turned on in the extra settings section, with sort arrows in the header of a product table

This is how the table looks on the page after a visitor sorts the Price column:

A product table on the live page with sort arrows in every header, sorted by the price column

How It Behaves

  • Click a header once to sort that column in ascending order. Click it again for descending order.
  • When the page loads, the rows are sorted A to Z by the first column, not kept in the order you entered them. Put the column you want visitors to see sorted first in the first position.
  • Sorting also works together with Table Searchable and Entry Filter Dropdown. With the entry filter on, the whole table is sorted first and then the first rows are shown.
Animated demo of clicking the column headers of a table to sort it in both directions

Limitations

  • Numbers are sorted as text. In our test the prices 29, 35 and 119 came out as 119, 29, 35, because the sort compares characters from left to right. Values with the same number of digits (for example ratings from 4.0 to 4.9) sort correctly. Prices written with a currency sign behave the same way.
  • The sort arrows need Font Awesome. The arrows use the Font Awesome 5 icon font, which the widget does not load itself. On a test page without it, every header showed an empty box instead of an arrow. Sorting still worked.
  • Merged cells break sorting. With a Column Span or Row Span cell in the table, visitors saw a browser popup (“DataTables warning: … Incorrect column count”) and the columns did not sort.
  • You cannot choose a different starting order; the table always starts sorted by the first column.

Troubleshooting

My rows are in a different order than in the editor

That is the automatic A to Z sort on the first column. Turn Table Sortable off if the original row order must stay.

Clicking a header does nothing

Test on the published page, and check that no cell in the table uses Column Span or Row Span.