Plugin icon

Markdown Table: Sortable

Description

Sort rendered tables on the fly and apply it to markdown source text. Can recognize simple cases of number, money, date and sort accordingly.

Additional Information

Links:
Maintainers: hieuthi
Version:1.2.2
Minimum app version:2.2
Downloads: This version:4176
Last updated:2022-04-30T11:05:28Z

Markdown Table: Sortable

This plugin adds a function to sort rendered tables by clicking on header and apply the sorting to markdown text source. Beside simple text and numeric sorting, it can also automatically figure out some other types such as money with currency symbol, different date format. It is based on the sorttable script of Stuart Langridge with some minor changes.

Preview

Usage

Click on the header to sort, click again to reverse the order. From v1.2.0 and later you apply the sorting to markdown source text by clicking on the "Apply Sorting!" button at the top right corner of the rendered table.

From v1.1.0 and later, the string sorting is case-insensitive and there is no option to change it back. If you really want case-sensitive sorting you can use v.1.0.1.

The plugin only changes the rendered table and not the original markdown text unless you explicitly click "Apply Sorting!" button. Otherwise, the order will be reset whenever the note is updated.

License

MIT