{"id":413871,"date":"2026-11-26T15:34:22","date_gmt":"2026-11-26T15:34:22","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/table-block-sort\/"},"modified":"2026-11-26T15:33:52","modified_gmt":"2026-11-26T15:33:52","slug":"table-block-sort","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/table-block-sort\/","author":23095418,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.1.0","stable_tag":"0.1.0","tested":"7.1.5","requires":"6.3","requires_php":"7.4","requires_plugins":null,"header_name":"Table Block Sort","header_author":"orcnd","header_description":"Adds sortable columns, a search box, striped rows and a CSV download to the core Table block, from its toolbar and sidebar.","last_updated":"2026-11-26 15:33:52","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/orcnd\/table-block-sort","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":0,"downloads":15,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"0.1.0":{"tag":"0.1.0","author":"orcnd","date":"2026-11-26 15:33:52","revision":3827463}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3827463,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3827463,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3827463,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3827463,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3827463,"resolution":"1","location":"assets","locale":"","width":1402,"height":1104},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3827463,"resolution":"2","location":"assets","locale":"","width":1440,"height":1000},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3827463,"resolution":"3","location":"assets","locale":"","width":1440,"height":1000},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3827463,"resolution":"4","location":"assets","locale":"","width":780,"height":1560},"screenshot-5.png":{"filename":"screenshot-5.png","revision":3827463,"resolution":"5","location":"assets","locale":"","width":2200,"height":1400}},"screenshots":{"1":"A table with search, highlighted matches, sorting by price, the download and share icons and \"Show more\".","2":"In the editor: the sort, search, stripes and download buttons next to \"Edit table\", and the \"Visitor tools\" panel.","3":"The \"More table tools\" menu: cards on phones, sticky header, \"Show more\" button and share button.","4":"On a phone: rows become cards, and sorting moves to a menu of column names with up and down arrows.","5":"A long table with a sticky header row."}},"plugin_section":[],"plugin_tags":[13410,822,2289,251773,295708],"plugin_category":[],"plugin_contributors":[295125],"plugin_business_model":[],"class_list":["post-413871","plugin","type-plugin","status-publish","hentry","plugin_tags-csv-export","plugin_tags-sortable","plugin_tags-table","plugin_tags-table-block","plugin_tags-table-search","plugin_contributors-orcnd","plugin_committers-orcnd"],"banners":{"banner":"https:\/\/ps.w.org\/table-block-sort\/assets\/banner-772x250.png?rev=3827463","banner_2x":"https:\/\/ps.w.org\/table-block-sort\/assets\/banner-1544x500.png?rev=3827463","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/table-block-sort\/assets\/icon-128x128.png?rev=3827463","icon_2x":"https:\/\/ps.w.org\/table-block-sort\/assets\/icon-256x256.png?rev=3827463","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/table-block-sort\/assets\/screenshot-1.png?rev=3827463","caption":"A table with search, highlighted matches, sorting by price, the download and share icons and \"Show more\"."},{"src":"https:\/\/ps.w.org\/table-block-sort\/assets\/screenshot-2.png?rev=3827463","caption":"In the editor: the sort, search, stripes and download buttons next to \"Edit table\", and the \"Visitor tools\" panel."},{"src":"https:\/\/ps.w.org\/table-block-sort\/assets\/screenshot-3.png?rev=3827463","caption":"The \"More table tools\" menu: cards on phones, sticky header, \"Show more\" button and share button."},{"src":"https:\/\/ps.w.org\/table-block-sort\/assets\/screenshot-4.png?rev=3827463","caption":"On a phone: rows become cards, and sorting moves to a menu of column names with up and down arrows."},{"src":"https:\/\/ps.w.org\/table-block-sort\/assets\/screenshot-5.png?rev=3827463","caption":"A long table with a sticky header row."}],"raw_content":"<!--section=description-->\n<p>WordPress has a Table block, but visitors cannot sort, search or download it. The usual answer is a separate table plugin with its own editor and its own way of storing tables. Table Block Sort keeps the Table block you already use and adds switches to it.<\/p>\n\n<p>Select a table. Its toolbar gets four buttons next to \"Edit table\": sort (two arrows), search (magnifying glass), striped rows (three bands) and download (arrow into a tray). Each stays highlighted while it is on. A \"More table tools\" menu after them holds phone cards, sticky header, \"Show more\" and the share button. The block sidebar gets a \"Visitor tools\" panel with all of them.<\/p>\n\n<ul>\n<li><strong>Sortable columns:<\/strong> on the page, each header cell becomes a button. The first click sorts the column from low to high, the next click from high to low.<\/li>\n<li><strong>Search box:<\/strong> a search field at the left above the table. It is WordPress' own Search block field, so it looks like every other search field in your theme. The matching text is highlighted in the browser's own highlight color. While visitors type, rows that do not match are hidden and the number of matching rows is shown. Upper and lower case and accents are ignored, so \"cafe\" finds \"Caf\u00e9\".<\/li>\n<li><strong>Striped rows:<\/strong> every other row gets a shaded background. This is the Table block's own \"Stripes\" style, so the switch and the Styles panel always agree. The stripes stay correct after sorting and searching, and their shade is mixed from the theme's text color, so they also work on dark themes.<\/li>\n<li><strong>Download button:<\/strong> a download icon at the right above the table (its label, \"Download CSV\", shows on hover and is read by screen readers). It uses the theme's text color. Visitors get the table as they see it: in their sort order and only the rows that match their search. The file opens in Excel, Numbers, LibreOffice and Google Sheets with accents intact, and is named after the table caption.<\/li>\n<li><strong>Cards on phones:<\/strong> on screens narrower than 600 pixels each row becomes a card, with the column name next to each value. No more sideways scrolling. Sorting moves to a sort icon above the table: it opens a short menu with each column name and an up and a down arrow.<\/li>\n<li><strong>Sticky header:<\/strong> the header row stays in view while visitors scroll down a long table, below the admin bar when it shows. It takes the theme's background color.<\/li>\n<li><strong>Show more button:<\/strong> only the first rows show (you pick how many, 3 to 100), with a \"Show more\" button and \"Showing 10 of 40 rows\" under the table. Search, sorting and the download still use every row.<\/li>\n<li><strong>Share button:<\/strong> a share icon next to the download icon. The sort and the search are kept in the page address (for example <code>?table1-sort=price&amp;table1-order=desc<\/code>); the icon opens the share sheet on phones and copies that link elsewhere (\"Link copied\"). Opening the link shows the table the same way.<\/li>\n<\/ul>\n\n<p><strong>How columns are sorted<\/strong><\/p>\n\n<p>Each column is checked as a whole. When more than half of its cells are dates, it sorts by date; when more than half are numbers, by number; otherwise as text.<\/p>\n\n<ul>\n<li>Prices and numbers in the usual shapes: \"$50\", \"$1,200.00\", \"US$ 100\", \"15 USD\", \"AED 1,200\", \"9,99 \u20ac\", \"50,- \u20ac\", \"1 299 kr\", \"-$20\", \"($40)\", \"12%\", \"$1.2M\", \"$800K\", \"2,5 Mio.\", \"12 kg\", \"~$40\", \"2+\". A range such as \"$50-$100\" sorts by its first number. Arabic digits are read too.<\/li>\n<li>The decimal sign is worked out for the column: \"\u20ac9,99\" is 9.99 even on an English page, and \"1.234,5\" is 1234.5. Only when the cells do not show it, the site language decides.<\/li>\n<li>Dates: \"2026-03-14\", \"2026-03-14T09:30\", \"14.03.2026\", \"3\/14\/2026\", \"14 March 2026\", \"Mar 3, 2026\", \"March 2nd, 2026\", \"Sat, 14 Feb 2026\", \"December 2025\", with or without a time (\"9:05 PM\"), and times alone. Month names work in English and in the site language (\"14. M\u00e4rz 2026\", \"14 Mart 2026\").<\/li>\n<li>For dates like 03\/04\/2026 the column decides: if any cell has a first number above 12, the column is day first; a second number above 12 means month first. Only when no cell tells, the site language decides.<\/li>\n<li>Everything else as text, in the site language's alphabetical order, with \"Item 2\" before \"Item 10\".<\/li>\n<li>In a number or date column, cells that are neither (\"Free\", \"Contact us\") come right after the values, A to Z. Empty cells and placeholders (\"-\", \"N\/A\", \"TBD\") always go last. Rows with the same value keep their original order.<\/li>\n<\/ul>\n\n<p><strong>Accessible<\/strong><\/p>\n\n<p>The sort buttons work with the keyboard (Tab, then Enter or Space). The sorted column is announced to screen readers with <code>aria-sort<\/code>, following the WAI-ARIA sortable table pattern. The search field and the download icon have text labels for screen readers, and the number of matching rows is announced as it changes. The arrow follows the theme's text color and stays visible in Windows high-contrast mode.<\/p>\n\n<p><strong>What it does not do<\/strong><\/p>\n\n<ul>\n<li>No column filters or numbered pages (\"Show more\" only). No Excel or PDF export, only CSV.<\/li>\n<li>A sticky header turns off the sideways scrolling core gives wide tables, because the two do not work together. Turn on cards on phones for wide tables.<\/li>\n<li>Tables without a header row cannot be sorted: the header cells are the buttons. The sort button tells you to turn on \"Header section\" first. Search works without a header row.<\/li>\n<li>Tables with merged cells are not sorted, and tables with cells that span several rows are not searched, because moving or hiding their rows would break them.<\/li>\n<li>Only the body rows move or hide. The footer row stays at the bottom, and its totals are not recalculated for a search. For the same reason the download leaves the footer out while a search is active.<\/li>\n<\/ul>\n\n<p><strong>Light.<\/strong> One readable JavaScript file (about 38 KB, 12 KB compressed) and a 10 KB stylesheet, loaded only on pages that have a table using one of these tools. Without JavaScript the table shows as a normal table and the search field and download button stay hidden. The CSV file is made in the visitor's browser; nothing is sent to your server or anywhere else. No jQuery, no external requests, no tracking, no settings stored in the database. The setting is saved in the block itself, so deactivating the plugin leaves your tables as normal tables.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install and activate Table Block Sort from the Plugins screen.<\/li>\n<li>Edit a post or page with a Table block and make sure \"Header section\" is on in the block's Settings.<\/li>\n<li>Click the sort, search, stripes or download button in the table's toolbar, or use the \"Visitor tools\" panel in the block sidebar, and update the post.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20it%20work%20with%20tables%20i%20made%20before%20installing%20it%3F\"><h3>Does it work with tables I made before installing it?<\/h3><\/dt>\n<dd><p>Yes. Open the post, select the table and turn on what you need in its toolbar or sidebar. Nothing changes on any table until you do.<\/p><\/dd>\n<dt id=\"can%20the%20table%20be%20sorted%20by%20a%20column%20when%20the%20page%20loads%3F\"><h3>Can the table be sorted by a column when the page loads?<\/h3><\/dt>\n<dd><p>Not in this version. The table shows in the order you entered it until a visitor clicks a header.<\/p><\/dd>\n<dt id=\"what%20happens%20when%20i%20deactivate%20the%20plugin%3F\"><h3>What happens when I deactivate the plugin?<\/h3><\/dt>\n<dd><p>The tables stay as they are and are no longer sortable or searchable. Striped rows stay, because they are a core style. Your table content is never changed.<\/p><\/dd>\n<dt id=\"can%20someone%20put%20a%20formula%20into%20a%20cell%20and%20attack%20people%20who%20open%20the%20csv%3F\"><h3>Can someone put a formula into a cell and attack people who open the CSV?<\/h3><\/dt>\n<dd><p>No. Cells that a spreadsheet would run as a formula (starting with \"=\", \"+\", \"@\", or \"-\" followed by text) get an apostrophe in front, so they open as plain text. Negative numbers such as \"-12\" are kept as numbers.<\/p><\/dd>\n<dt id=\"what%20does%20the%20search%20look%20at%3F\"><h3>What does the search look at?<\/h3><\/dt>\n<dd><p>The text of every cell in the body rows. Header and footer rows are always shown.<\/p><\/dd>\n<dt id=\"which%20browsers%20show%20the%20search%20highlight%3F\"><h3>Which browsers show the search highlight?<\/h3><\/dt>\n<dd><p>Browsers with the CSS Custom Highlight API: current Chrome, Edge, Safari and Firefox. Older browsers still search; they just do not mark the matching text.<\/p><\/dd>\n<dt id=\"does%20it%20work%20in%20the%20site%20editor%20and%20in%20templates%3F\"><h3>Does it work in the site editor and in templates?<\/h3><\/dt>\n<dd><p>Yes. It works on any core Table block that WordPress renders on the front end.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>First release: sortable columns (number, date and text), search box with highlighted matches, striped rows switch, CSV download of the visible rows, cards on phones, sticky header, \"Show more\" button, shareable links, toolbar buttons and a \"Visitor tools\" sidebar panel, keyboard and screen reader support.<\/li>\n<\/ul>","raw_excerpt":"Sorting, search, CSV download, phone cards, sticky header and more for the core Table block. Turn them on in the block toolbar or sidebar.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/413871","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=413871"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/orcnd"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=413871"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=413871"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=413871"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=413871"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=413871"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=413871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}