Example
Type in the search box to filter the rows, or click a column heading to sort by it.
| Name | Position | Office | Age | Start date |
|---|---|---|---|---|
| Airi Satou | Accountant | Tokyo | 33 | 2008/11/28 |
| Angelica Ramos | Chief Executive Officer (CEO) | London | 47 | 2009/10/09 |
| Ashton Cox | Junior Technical Author | San Francisco | 66 | 2009/01/12 |
| Bradley Greer | Software Engineer | London | 41 | 2012/10/13 |
| Brenden Wagner | Software Engineer | San Francisco | 28 | 2011/06/07 |
| Brielle Williamson | Integration Specialist | New York | 61 | 2012/12/02 |
| Tatyana Fitzpatrick | Regional Director | London | 19 | 2010/03/17 |
| Yuri Berry | Chief Marketing Officer (CMO) | New York | 40 | 2009/06/25 |
| Zenaida Frank | Software Engineer | New York | 63 | 2010/01/04 |
| Zorita Serrano | Software Engineer | San Francisco | 56 | 2012/06/01 |
Description
Sortable Tables adds a search box above each table on a page and lets visitors sort a table by clicking a column heading. Clicking the same heading again reverses the order. Numbers sort by value, text alphabetically, and empty cells go last. It’s built into the theme, with nothing loaded from other sites.
Usage
Switching it on
While editing the page, switch on Sortable Tables in the Page Features panel. It applies to every table on the page.
Making a table sortable
Sorting needs a single header row: in the Table block, switch on Header section and put the column names in it.
Tables with cells that span several rows are left as they are, with no search box or sorting, because hiding or reordering rows would scramble them. Tables with more than one header row, headings that span columns, or rows of headings in the body get a search box but can’t be sorted.
Leaving out the search box
Add no-search to a table block’s Additional CSS class(es), in the block’s Advanced panel, to leave out its search box.
Before theme version 2.3.2 this switch was called Bootstrap Table and did nothing in Streamlined.