decaf-dev/obsidian-dataloom

Mulit-Tag ordering

Runecreed opened this issue · 2 comments

Problem

When using a multi-tag column, the order of appearance of the tag is not following the order you specify -- during the selection phase the order persists but when finalizing they move around

Solution

Keep the order the multi-tags were selected in

Additional details

Im wondering if this was intentional as i can see a use case where having the multi-tags alphabetically or in some other consistent order makes sense, for my use case I'm using them as a sequence to follow, so the order of display is important

Other than that this plugin does exactly what I want but this is a key feature for me ;(

I would classify this issue as follows.
Problem:

  • When adding tags to a column of type Multi-tag, there is no option to choose sorting. The values within a single field in the column are sorted in a random order.

Solution:

  • Add an Options menu to columns of type Multi-tag. In the menu, you can choose one of two sorting options.
    • Ascending
    • Descending
  • For the Ascending and Descending options, sorting is done by the content of the tag.
  • For the Ascending and Descending options, the current model, saved in a .loom file, is sufficient. Sorting will require looking at model.columns.tags[N].content and sorting by the value found there.

@Runecreed please update DataLoom to version 8.16.0, in this version added the ability to customize sorting for multi-tags