Title: Sort empty cells to bottom
Last modified: September 20, 2026

---

# Sort empty cells to bottom

 *  Resolved [pop16](https://wordpress.org/support/users/pop16/)
 * (@pop16)
 * [1 week, 3 days ago](https://wordpress.org/support/topic/sort-empty-cells-to-bottom/)
 * Can i add any code to table press that sort empty text cells to the bottom?
   I
   sort from a to ö in one column (swedish language)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [pop16](https://wordpress.org/support/users/pop16/)
 * (@pop16)
 * [1 week, 2 days ago](https://wordpress.org/support/topic/sort-empty-cells-to-bottom/#post-19025021)
 * [https://test.spelmandax.se/?page_id=2926](https://test.spelmandax.se/?page_id=2926)
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [1 week, 1 day ago](https://wordpress.org/support/topic/sort-empty-cells-to-bottom/#post-19026006)
 * Hi [@pop16](https://wordpress.org/support/users/pop16/),
 * Thanks for your question, I’ll be happy to help!
 * For this, using an approach called “Absolute Sorting” is possible. Please find
   a custom mini-plugin (I call these “TablePress Extensions”) that makes absolute
   sorting available, here: [https://cdn.tablepress.org/extensions/tablepress-datatables-absolute-sorting.zip](https://cdn.tablepress.org/extensions/tablepress-datatables-absolute-sorting.zip)
 * Please download, install, and activate that just like any other plugin.
 * Then, please extend the Shortcode (or “Configuration parameters” setting when
   using the block) on the page with a new parameter:
 *     ```wp-block-code
       [table id=11 datatables_absolute_sorting=true /]
       ```
   
 * This will result in the relevant JavaScript file being loaded.
 * In addition, we’ll need to assign that absolute sorting to the columns in question.
   For that, please add this to the “Custom Commands” text field on the table’s “
   Edit” screen:
 *     ```wp-block-code
       columnDefs: [  { type: stringType, targets: [ 2, 4, 5 ] },],
       ```
   
 * This assigns a special sorting type to the columns with empty cells in your table(
   where counting the columns starts with 0 for the first column).
 * I hope this helps! If anything is unclear, please let me know!
 * Some additional remarks: It looks like your table is overflowing the theme to
   the right. This is especially visible on small screens, like phones. You could
   check out the [Responsive Tables premium feature module](https://tablepress.org/modules/responsive-tables/)
   for solution approaches to this.
 * Best wishes,
   Tobias
 *  Thread Starter [pop16](https://wordpress.org/support/users/pop16/)
 * (@pop16)
 * [1 week, 1 day ago](https://wordpress.org/support/topic/sort-empty-cells-to-bottom/#post-19026399)
 * Thank you very much it works great
   /Mats
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [1 week, 1 day ago](https://wordpress.org/support/topic/sort-empty-cells-to-bottom/#post-19026442)
 * Hi,
 * no problem, you are very welcome! 🙂 Good to hear that this helped!
 * Best wishes,
   Tobias
 * P.S.: In case you haven’t, please [rate TablePress in the plugin directory](https://wordpress.org/support/plugin/tablepress/reviews/#new-post).
   Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsort-empty-cells-to-bottom%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [1 week, 1 day ago](https://wordpress.org/support/topic/sort-empty-cells-to-bottom/#post-19026442)
 * Status: resolved