Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alexandru-dinu/obsidian-sortable

Table sorting plugin for https://obsidian.md
https://github.com/alexandru-dinu/obsidian-sortable

obsidian-md obsidian-plugin table-sorting

Last synced: about 1 month ago
JSON representation

Table sorting plugin for https://obsidian.md

Awesome Lists containing this project

README

        

# Obsidian Sortable

[![Build](https://github.com/alexandru-dinu/obsidian-sortable/actions/workflows/main.yml/badge.svg)](https://github.com/alexandru-dinu/obsidian-sortable/actions/workflows/main.yml)
[![Discussions](https://img.shields.io/badge/discussions-welcome-blueviolet)](https://github.com/alexandru-dinu/obsidian-sortable/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](https://github.com/kraibse/obsidian-table-sorting).

Sortable is a plugin for [Obsidian](https://obsidian.md) that aims to offer [Wikipedia-like](https://en.wikipedia.org/wiki/Help:Sorting#Example) 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

https://user-images.githubusercontent.com/14110183/128138299-fd2a1bb2-6f87-4b50-b306-17550d8adc64.mov

- Supported data types: numbers, strings, [ISO dates](https://regex101.com/r/RfMAcx/1). Custom comparator functions are part of the roadmap (see this [issue](https://github.com/alexandru-dinu/obsidian-sortable/issues/12)).
- 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](https://github.com/alexandru-dinu/obsidian-sortable/projects/1) 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](https://github.com/alexandru-dinu/obsidian-sortable/releases),
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](https://github.com/alexandru-dinu/obsidian-sortable/discussions/23#discussioncomment-2376620) to [inability to sort in certain states](https://github.com/alexandru-dinu/obsidian-sortable/issues/22).
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!