alexandru-dinu / obsidian-sortable

Table sorting plugin for https://obsidian.md

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Obsidian Sortable

Build Discussions

Important

As of March 12, 2024 I will be archiving this repository since I no longer have the time, nor the interest to further contribute and expand the project's feature set. I appreciate that many of you have found this useful!

If anyone wants to continue the development and/or maintain this project, feel free to fork.

As an alternative, look at kraibse/obsidian-table-sorting.

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

Features

Demo
sortable.mov
  • Supported data types: numbers, strings, ISO dates. Custom comparator functions are part of the roadmap (see this issue).
  • No altering of the markdown source code. Sorting is done by rearranging table rows (i.e. tr elements).
  • No dependencies.

Please note that the development is still in a beta stage. Check the project's roadmap for updates.

Installation

Search for "Sortable" in Obsidian's community plugins (Settings > Community plugins > Browse), install, then enable.

Alternatively, you can download the required files from the latest release, move them to vault/.obsidian/plugins/obsidian-sortable and enable "Sortable" from the "Community plugins" settings.

Disclaimer

I built Sortable mostly to fulfill my personal needs and I appreciate that now many people find it useful. However, given the plethora of plugins, themes and tweaks for Obsidian, numerous bugs may occur when using Sortable in various contexts. These may range from UI inconsistencies to inability to sort in certain states. While I try to address most of the issues, please understand that I cannot accommodate every request, mostly because I do not use many Obsidian plugins and quirks myself.

Thank you!

About

Table sorting plugin for https://obsidian.md

License:MIT License


Languages

Language:TypeScript 68.0%Language:CSS 15.8%Language:Makefile 8.3%Language:JavaScript 7.9%