When you turn on table filter and sort, readers can filter and sort the tables in your articles directly on the knowledge base site. They can show only the rows they need or reorder a column, without scrolling through the whole table. You turn it on once in Article settings, and it applies to every table in every article on your knowledge base site.
When to use table filter and sort
- Long reference tables: Readers can filter to the one entry they need, such as a specific setting, parameter, or error code.
- Comparison tables: Readers can sort by the column that matters to them, such as plan name or feature availability.
- Data-heavy articles: Readers can reorder the data themselves instead of asking your team for a different view.
Before you begin
Each table must have a header row. Readers filter and sort from the header row, so tables without one don't show the Filter icon, even when the setting is on.
New tables have a header row by default. To show a hidden header row:
- Unified Editor: Select the table, open Display on the table toolbar, and turn on the Table header toggle.
- Advanced WYSIWYG editor: Select the entire table and click Show table header.
- Markdown editor: Markdown tables always include a header row.
For more information, see Tables.
How to turn on table filter and sort
- Navigate to Settings () > Knowledge base site in the left navigation bar of the Knowledge base portal.
- In the left navigation pane, navigate to Article settings.
- Expand the Article content accordion.
- Under Table, turn on the Enable table filter & sort toggle.

After you turn on the toggle, open an article with a table on your knowledge base site and hover over a header cell to confirm that the Filter icon appears.
How readers filter and sort a table
On the knowledge base site, readers do the following:
- Hover over a table header cell and click the Filter icon.
A dialog appears with sort and filter options for that column. - To sort the column alphabetically, click Sort A to Z or Sort Z to A. To remove sorting from that column, click Clear Sorting.
- To filter the table, select the values to show and click Apply. To remove filters from all columns at once, click Clear.

How to replace the custom table sorting script
If you set up table sorting earlier with custom CSS and JavaScript, remove those snippets before you turn on the built-in setting. Removing them means only the built-in sort and filter controls run on your tables.
- Navigate to Settings () > Knowledge base site > Custom CSS & JavaScript.
- In the CSS tab, delete the
table th { cursor: pointer; }rule and the rules that use theth-sort-ascandth-sort-descclasses. - Click Save.
- In the JavaScript tab, delete the
sortTableByColumnandinitSortableTablesfunctions, theinitSortableTables();call, and thesetInterval(initSortableTables, 1000);line. - Click Save.

- Turn on table filter and sort as described in How to turn on table filter and sort.
Considerations
| Aspect | Details |
|---|---|
| Where it works | Knowledge base site (public and private) and custom domain sites. It doesn't work in the Knowledge base portal, the editor, or PDF exports. |
| Scope | The setting applies to all tables across your knowledge base site. You can't turn it on for individual tables or articles. |
| Header row | Tables without a header row don't show the Filter icon. |
| Sorting | Only one column can be sorted at a time. Sorting a new column clears the sorting on the previous one. |
| Merged cells | Filtering and sorting don't work on tables with merged cells. |
| Persistence | Filters and sorting are temporary. The table returns to its original order when the reader refreshes the page. |
| Clearing filters | Clear removes filters from all columns at once and appears only when filters are applied to more than one column. |
Best practices
- Write clear column headers: Readers choose which column to filter or sort from its header, so use short, specific labels such as "Plan" or "Status" instead of "Details".
- Avoid merged cells in data tables: If readers need to filter or sort a table, keep one value per cell.
- Use lists for step or layout tables: Filtering a table that holds steps or page layout adds little value. A numbered list often works better.
- Check a few tables after you turn it on: Open a long table and a short table on the knowledge base site to confirm the Filter icon appears and the results read correctly.
FAQ
Why don't I see the Filter icon on a table?
Check that the Enable table filter & sort toggle is turned on in Article settings and that the table has a header row. The Filter icon appears only when you hover over a header cell on the knowledge base site.
Can readers sort more than one column at a time?
No. Only one column can be sorted at a time. Sorting a new column clears the sorting on the previous one. Readers can still apply filters to more than one column at the same time.
Do filters and sorting stay in place when a reader returns to the article?
No. Filters and sorting reset when the page is refreshed or reopened.
I added the custom table sorting script earlier. Do I still need it?
No. The built-in setting replaces the script. Remove the custom CSS and JavaScript snippets, then turn on Enable table filter & sort in Article settings.