# Plugin: Markdown Table - Sortable

**URL:** <https://discourse.joplinapp.org/t/plugin-markdown-table-sortable/21846>\
**Category:** Plugins\
**Created:** [19 November 2021 11:57 UTC](https://discourse.joplinapp.org/t/plugin-markdown-table-sortable/21846 "2021-11-19T11:57:18Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![hieuthi](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/hieuthi/32/10815_2.png) [@hieuthi](https://discourse.joplinapp.org/u/hieuthi)\
**Post date:** [19 November 2021 11:57 UTC](https://discourse.joplinapp.org/t/plugin-markdown-table-sortable/21846/1 "2021-11-19T11:57:18Z")

</div>

This plugin add the ability to sort rendered tables. It may or may not be compatible with other table plugins (e.g.: `multimd-table`) so use at your own risk.

![Preview](https://raw.githubusercontent.com/hieuthi/joplin-plugin-markdown-table-sortable/main/docs/preview-v1.2.0.png)

It is based on [sorttable](https://www.kryogenix.org/code/browser/sorttable/) script, so check the original post for the details logic.

> **[GitHub - hieuthi/joplin-plugin-markdown-table-sortable: Add the ability to...](https://github.com/hieuthi/joplin-plugin-markdown-table-sortable)**
>
> Add the ability to sort rendered tables on the fly - GitHub - hieuthi/joplin-plugin-markdown-table-sortable: Add the ability to sort rendered tables on the fly

You might also like my other plugin about table:

[Plugin: Markdown Table - Colorize](https://discourse.joplinapp.org/t/plugin-markdown-table-colorize/21195)

---

<div class="post-metadata">

**Author:** ![whitewall](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/whitewall/32/6018_2.png) [@whitewall](https://discourse.joplinapp.org/u/whitewall)\
**Post date:** [19 November 2021 12:17 UTC](https://discourse.joplinapp.org/t/plugin-markdown-table-sortable/21846/2 "2021-11-19T12:17:43Z")

</div>

I wonder what the record is for most plugins published in a single month? You may be on track to beat it. 🥇

Thanks for all your work.

---

<div class="post-metadata">

**Author:** ![hieuthi](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/hieuthi/32/10815_2.png) [@hieuthi](https://discourse.joplinapp.org/u/hieuthi)\
**Post date:** [19 November 2021 13:24 UTC](https://discourse.joplinapp.org/t/plugin-markdown-table-sortable/21846/3 "2021-11-19T13:24:21Z")

</div>

I am in the midst of revamping my workflow with joplin. While I am experimenting with note taking then quickly develop the plugin that alleviate the problem that irritate me the most.

So as long as I am still using Joplin, more will come a long with my workflow development. Although I think I checked all the low hanging fruits in my plugin todo list, so probably not as frequent.

---

<div class="post-metadata">

**Author:** ![castaway](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/castaway/32/11522_2.png) [@castaway](https://discourse.joplinapp.org/u/castaway)\
**Post date:** [20 November 2021 13:31 UTC](https://discourse.joplinapp.org/t/plugin-markdown-table-sortable/21846/4 "2021-11-20T13:31:25Z")

</div>

Hiya,  
This is great and adds great functionality to MD tables, thank you!  
Daft question, do I need to build it manually to use? There is no JPL file on Github and the plugin does not show up through Joplin's plugins built-in search.  
Cheers

---

<div class="post-metadata">

**Author:** ![hieuthi](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/hieuthi/32/10815_2.png) [@hieuthi](https://discourse.joplinapp.org/u/hieuthi)\
**Post date:** [20 November 2021 13:48 UTC](https://discourse.joplinapp.org/t/plugin-markdown-table-sortable/21846/5 "2021-11-20T13:48:21Z")

</div>

There is some unknown problem with the npmjs hopefully it will be resolve soon. In the meantime you can install using the jpl put in github release.

> **[Release Markdown Table: Sortable v1.0.0 ·...](https://github.com/hieuthi/joplin-plugin-markdown-table-sortable/releases/tag/v1.0.0)**
>
> Fully working

---

<div class="post-metadata">

**Author:** ![castaway](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/castaway/32/11522_2.png) [@castaway](https://discourse.joplinapp.org/u/castaway)\
**Post date:** [20 November 2021 14:49 UTC](https://discourse.joplinapp.org/t/plugin-markdown-table-sortable/21846/6 "2021-11-20T14:49:06Z")

</div>

star, thank you!

---

<div class="post-metadata">

**Author:** ![dpoulton](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/dpoulton/32/30800_2.png) [@dpoulton](https://discourse.joplinapp.org/u/dpoulton)\
**Post date:** [20 November 2021 15:44 UTC](https://discourse.joplinapp.org/t/plugin-markdown-table-sortable/21846/7 "2021-11-20T15:44:00Z")

</div>

A useful plug-in. Thanks. What I really like is that it works in the render pane and does not require any non-standard Markdown code. That makes it "mobile-app friendly" in that a mobile app can still display the original table as it is not presented with customised Markdown it does not understand!!

---

<div class="post-metadata">

**Author:** ![hieuthi](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/hieuthi/32/10815_2.png) [@hieuthi](https://discourse.joplinapp.org/u/hieuthi)\
**Post date:** [7 January 2022 10:36 UTC](https://discourse.joplinapp.org/t/plugin-markdown-table-sortable/21846/8 "2022-01-07T10:36:07Z")

</div>

## Updated v1.1.0

- The string sorting is case-insensitive from now on.

Don't update to this version if you really want it to be case-sensitive as there are no new feature added (at least at the moment). If you updated it by mistake and want the case-sensitive back, you can download [version 1.0.1 from github](https://github.com/hieuthi/joplin-plugin-markdown-table-sortable/releases/tag/v1.0.1)

---

<div class="post-metadata">

**Author:** ![hieuthi](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/hieuthi/32/10815_2.png) [@hieuthi](https://discourse.joplinapp.org/u/hieuthi)\
**Post date:** [28 April 2022 15:49 UTC](https://discourse.joplinapp.org/t/plugin-markdown-table-sortable/21846/9 "2022-04-28T15:49:02Z")

</div>

## Version v1.2.0

This version will add the ability to apply the sorting to your markdown source text.

[![](https://raw.githubusercontent.com/hieuthi/joplin-plugin-markdown-table-sortable/main/docs/preview-v1.2.0.png) ](https://raw.githubusercontent.com/hieuthi/joplin-plugin-markdown-table-sortable/main/docs/preview-v1.2.0.png)

WARNING: this feature is probably not compatible with any other plugins about tables. I don't use, haven't tested, and have no plan to support any of them. So please careful when click "Apply!" button. You can always undo though.

---

<div class="post-metadata">

**Author:** ![ndc](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@ndc](https://discourse.joplinapp.org/u/ndc)\
**Post date:** [3 December 2022 12:39 UTC](https://discourse.joplinapp.org/t/plugin-markdown-table-sortable/21846/10 "2022-12-03T12:39:41Z")

</div>

I installed the plugin, however it doesn't seem to work; nothing happens when I click on table headers. I've just started using Joplin, so I wonder if there is something I am missing in the installation process or in the use of the plugin. It would really be a fantastic feature to be able to sort tables.  
I am using Joplin 2.8.8 for Mac OS.  
Thanks for your help!

---

<div class="post-metadata">

**Author:** ![hieuthi](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/hieuthi/32/10815_2.png) [@hieuthi](https://discourse.joplinapp.org/u/hieuthi)\
**Post date:** [4 December 2022 00:40 UTC](https://discourse.joplinapp.org/t/plugin-markdown-table-sortable/21846/11 "2022-12-04T00:40:12Z")

</div>

Can you check all of the following points?

- 
  1. Have you restarted Joplin after install? You need to open menu Joplin \> Quit (or `⌘ + Q`) then open Joplin again. Simply press X on the window is not considered as quit.

- 
  1. This plugin only supports Markdown editor (the split view as you can see in the screenshot). If you are using WYSIWYG mode it will simply not working. You need to switch to markdown mode

- 
  1. Just to be sure, when you click on the header you need to click on the header in rendered side (right side), click on the editor side (left side) will not do anything.

Let me know if any of the above solve your problem.

---

<div class="post-metadata">

**Author:** ![ndc](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@ndc](https://discourse.joplinapp.org/u/ndc)\
**Post date:** [4 December 2022 19:04 UTC](https://discourse.joplinapp.org/t/plugin-markdown-table-sortable/21846/12 "2022-12-04T19:04:07Z")

</div>

Thank you so much, problem solved. I was using WYSIWYG mode; in markdown mode it works perfectly.

---

<div class="post-metadata">

**Author:** ![antonio-slog](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@antonio-slog](https://discourse.joplinapp.org/u/antonio-slog)\
**Post date:** [3 June 2024 12:39 UTC](https://discourse.joplinapp.org/t/plugin-markdown-table-sortable/21846/13 "2024-06-03T12:39:25Z")

</div>

Thanks for the plug-in.  
It works on HTML tables too.  
The only problem is it cannot change the markdown of HTML table so you can't save the new sorting.  
Not a big problem, but adding this feature would be great.  
Ciao  
Tony

---

<div class="post-metadata">

**Author:** ![hieuthi](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/hieuthi/32/10815_2.png) [@hieuthi](https://discourse.joplinapp.org/u/hieuthi)\
**Post date:** [26 July 2025 15:16 UTC](https://discourse.joplinapp.org/t/plugin-markdown-table-sortable/21846/14 "2025-07-26T15:16:07Z")

</div>

I am looking for help to update this plugin feature (apply sorting) to make it work with the latest version. Since I have little experience with CodeMirror 6, it has been a struggle for me to update it.

If someone can help with a PR or some suggestion about where should I look, it will be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![hieuthi](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/hieuthi/32/10815_2.png) [@hieuthi](https://discourse.joplinapp.org/u/hieuthi)\
**Post date:** [2 August 2025 05:34 UTC](https://discourse.joplinapp.org/t/plugin-markdown-table-sortable/21846/15 "2025-08-02T05:34:49Z")

</div>

### v1.3.0

Fix Apply Sorting function to work with CodeMirror6

From this version onward, this plugin no longer support CodeMirror5

---

<div class="post-metadata">

**Author:** ![tomasz86](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@tomasz86](https://discourse.joplinapp.org/u/tomasz86)\
**Post date:** [2 August 2025 15:11 UTC](https://discourse.joplinapp.org/t/plugin-markdown-table-sortable/21846/16 "2025-08-02T15:11:27Z")

</div>

Thank you very much for the update 🥳.
