Sortable is a plugin for Obsidian that aims to offer Wikipedia-like sortable tables. Sorting is done with respect to a table header, on click:
- first click: ascending order
- second click: descending order
- third click: default order
Demo
sortable.mov
- Sorting numerical and string data types. Custom comparator functions are part of the roadmap (see this issue).
- There is only one dependency: uuid for uniquely identifying tables.
- No altering of the markdown source code. Sorting is done solely in preview mode by rearranging rows (i.e.
tr
elements).
Download the files from the latest release,
move them to vault/.obsidian/plugins/obsidian-sortable
and enable "Sortable" from the Obsidian "Community plugins" settings.
Please note that the development is still in a beta stage, with more feature to be implemented. Check the project's roadmap for updates.