Title: LH Sortable Tables
Author: shawfactor
Published: <strong>6 de octubre de 2020</strong>
Last modified: 31 de julio de 2022

---

Buscar plugins

![](https://ps.w.org/lh-sortable-tables/assets/banner-772x250.jpg?rev=2394111)

Este plugin **no se ha probado con las últimas 3 versiones mayores de WordPress**.
Puede que ya no tenga soporte ni lo mantenga nadie, o puede que tenga problemas 
de compatibilidad cuando se usa con las versiones más recientes de WordPress.

![](https://ps.w.org/lh-sortable-tables/assets/icon-256x256.png?rev=2394111)

# LH Sortable Tables

 Por [shawfactor](https://profiles.wordpress.org/shawfactor/)

[Descargar](https://downloads.wordpress.org/plugin/lh-sortable-tables.zip)

 * [Detalles](https://ve.wordpress.org/plugins/lh-sortable-tables/#description)
 * [Valoraciones](https://ve.wordpress.org/plugins/lh-sortable-tables/#reviews)
 *  [Instalación](https://ve.wordpress.org/plugins/lh-sortable-tables/#installation)
 * [Desarrollo](https://ve.wordpress.org/plugins/lh-sortable-tables/#developers)

 [Soporte](https://wordpress.org/support/plugin/lh-sortable-tables/)

## Descripción

Table Sorter turns standard HTML table (with THEAD and TBODY tags) in your post,
page, or CPT content into a sortable table without page refresh. It has many useful
features including :

 1. Multi-column sorting.
 2. Disable sorting from particular column(s).
 3. Different sorting types.
 4. Cross-browser support

To make a table just add class=»sortable» to the table element in the html view.

**NOTE** Unlike other plugins this plugin will not unneccessarily slow down your
site. The javascript to add the sorting is only added to the page is the above class
is added to a table in the content.

As the javascript is vanilla it is unlikely to connflict with other plugins

This plugin uses Jonas Earendel’s [Sortable table library](https://github.com/tofsjonas/sortable).
So advanced documenation can be found there and its many other features can be found
there.

**View a demo here: [https://lhero.org/sortable-table-demo/](https://lhero.org/sortable-table-demo/).**

**Like this plugin? Please consider [leaving a 5-star review](https://wordpress.org/support/view/plugin-reviews/lh-sortable-tables/).**

**Love this plugin or want to help the LocalHero Project? Please consider [making a donation](https://lhero.org/portfolio/lh-sortable-tables/).**

## Instalación

Install using WordPress:

 1. Log in and go to _Plugins_ and click on _Add New_.
 2. Search for _lh-sortable-tables_ and hit the _Install Now_ link in the results. 
    WordPress will install it.
 3. From the Plugin Management page in WordPress, activate the _lh-sortable-tables_
    plugin.
 4. That is it, no settings are required for this plugin

Install manually:

 1. Download the plugin zip file and unzip it.
 2. Upload the plugin contents into your WordPress installation_s plugin directory 
    on the server. The plugins .php files, readme.txt and subfolders should be installed
    in the *wp-content/plugins/lh-sortable-tables/_ directory.
 3. From the Plugin Management page in WordPress, activate the _lh-sortable-tables_
    plugin.
 4. That is it, no settings are required for this plugin

## Preguntas frecuentes

### Why is it better to use vanilla javascript?

Vanilla javascript means using plain JavaScript without any additional libraries
like jQuery. Using vanilla js maximises compatibility, minimises code bloat, and
gives you the best chance that the functionality will still work as browsers change.

### What tags do I need to make the table sortable?

Firstly you need a table with the class=»sortable» (this ensures the javascript 
and css are added)

You also need the table header to follow the standard thead->tr->th nesting and 
the table body to follow the standard tbody->tr->td nesting for sorting to work.

### How can I change the styling of the css tables?

The styling added by the plugin is neutral, and there are deliberately no options
with this plugin. But if you want your own styling that harmonises with your site
there are filters. The filters can be viewed in the code.

And an example is here: [https://lhero.org/portfolio/lh-sortable-tables/#modifying-the-table-css](https://lhero.org/portfolio/lh-sortable-tables/#modifying-the-table-css)

### How is this better than other plugins that provide this functionality?

This plugin ONLY adds the javascript and css if a table with the class=»sortable»
id exists in the post, page or CPT content. This means assets are not added unnnecessarily(
and thus slow down your site). This plugin also uses the best javascript library
for table sorting I can find, with many additional features.

### What is something does not work?

LH Sortable Tables, and all [https://lhero.org](https://ve.wordpress.org/plugins/lh-sortable-tables/LocalHero?output_format=md)
plugins are made to WordPress standards. Therefore they should work with all well
coded plugins and themes. However not all plugins and themes are well coded (and
this includes many popular ones).

If something does not work properly, firstly deactivate ALL other plugins and switch
to one of the themes that come with core, e.g. twentyfirteen, twentysixteen etc.

If the problem persists pleasse leave a post in the support forum: [https://wordpress.org/support/plugin/lh-sortable-tables/](https://wordpress.org/support/plugin/lh-sortable-tables/).
I look there regularly and resolve most queries.

### Are there any other requirements?

This plugin relies on the [https://developer.wordpress.org/reference/hooks/wp_body_open/](https://ve.wordpress.org/plugins/lh-sortable-tables/wp_body_open?output_format=md)
hook. 98% of themes include it and it is now a standard. If yours does not, create
a child theme, or get a better theme.

### What if I need a feature that is not in the plugin?

Please contact me for custom work and enhancements here: [https://shawfactor.com/contact/](https://shawfactor.com/contact/)

## Reseñas

![](https://secure.gravatar.com/avatar/2fdbacef8c6d190f0d086974d220b657fcef49d1c7c5f118ce9afca36014a3e8?
s=60&d=retro&r=g)

### 󠀁[excellent plugin amazing support](https://wordpress.org/support/topic/excellent-plugin-amazing-support-19/)󠁿

 [lemorin](https://profiles.wordpress.org/lemorin/) 2 de septiembre de 2021

I got instant overnight support for this amazing plugin. Very happy thank you A+
++++++++

![](https://secure.gravatar.com/avatar/d1efe5c16837734962a492a41408e387fc563524c35c7a91f94cdfa4e345a991?
s=60&d=retro&r=g)

### 󠀁[Fast and simple](https://wordpress.org/support/topic/fast-and-simple-48/)󠁿

 [hganev](https://profiles.wordpress.org/hganev/) 14 de octubre de 2020

It works! Great fast and simple plugin.

 [ Leer todas las 2 reseñas ](https://wordpress.org/support/plugin/lh-sortable-tables/reviews/)

## Colaboradores y desarrolladores

«LH Sortable Tables» es un software de código abierto. Las siguientes personas han
colaborado con este plugin.

Colaboradores

 *   [ shawfactor ](https://profiles.wordpress.org/shawfactor/)

[Traduce «LH Sortable Tables» a tu idioma.](https://translate.wordpress.org/projects/wp-plugins/lh-sortable-tables)

### ¿Interesado en el desarrollo?

[Revisa el código](https://plugins.trac.wordpress.org/browser/lh-sortable-tables/),
echa un vistazo al [repositorio SVN](https://plugins.svn.wordpress.org/lh-sortable-tables/)
o suscríbete al [registro de desarrollo](https://plugins.trac.wordpress.org/log/lh-sortable-tables/)
por [RSS](https://plugins.trac.wordpress.org/log/lh-sortable-tables/?limit=100&mode=stop_on_copy&format=rss).

## Registro de cambios

#### 1.00 – October 04, 2020

 * Inital release

#### 1.01- October 11, 2020

 * Added filters to exclude or change the css

## Meta

 *  Version **1.01**
 *  Last updated **hace 4 años**
 *  Active installations **80+**
 *  WordPress version ** 4.0 o superior **
 *  Tested up to **6.0.11**
 *  PHP version ** 5.6 o superior **
 *  Language
 * [English (US)](https://wordpress.org/plugins/lh-sortable-tables/)
 * Tags
 * [order](https://ve.wordpress.org/plugins/tags/order/)[sortable](https://ve.wordpress.org/plugins/tags/sortable/)
   [sorter](https://ve.wordpress.org/plugins/tags/sorter/)[table](https://ve.wordpress.org/plugins/tags/table/)
   [tablesorter](https://ve.wordpress.org/plugins/tags/tablesorter/)
 *  [Vista avanzada](https://ve.wordpress.org/plugins/lh-sortable-tables/advanced/)

## Valoraciones

 5 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/lh-sortable-tables/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/lh-sortable-tables/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/lh-sortable-tables/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/lh-sortable-tables/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/lh-sortable-tables/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/lh-sortable-tables/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/lh-sortable-tables/reviews/)

## Colaboradores

 *   [ shawfactor ](https://profiles.wordpress.org/shawfactor/)

## Soporte

¿Tienes algo que decir? ¿Necesitas ayuda?

 [Ver el foro de soporte](https://wordpress.org/support/plugin/lh-sortable-tables/)

## Donar

¿Te gustaría apoyar el progreso de este plugin?

 [ Dona a este plugin ](http://lhero.org/portfolio/lh-sortable-tables/)