Ability to reorder tag /status options

Hello!
This feature request is related to this bug report.

The Problem
When sorting a set by a tag relation, objects are sorted depending on the order of the tag’s options.

At the moment, to change this order, you are required to delete a tag, create a new one (that will be appended to the options [at the bottom of the list]).

Moreover, it would be ideal to be able to manually order certain options (i.e. those which are often used) earlier — especially useful when there exist dozens of different tag options with similar names (and thus searching for specific options, is also rendered inefficient).

The Solution
The ideal solution would be to have the ability to reorder tag options, thus changing the order by which objects are sorted (when a set is sorted by a tag).

Another potential solution (commented by @lynxlove — thank you!) to the former issue above, would be to have the ability to custom sort the order in which tags are displayed, via the “Sort by” menu (in addition to the current “Ascending” and “Descending” options).

Alternatives
The only viable alternative is mentioned above.

Additional context
N/A

Thank you for reading, hope you have an amazing day!

21 Likes

Isn’t the In this object a mere suggestion to the user and does not represent any ordering? This is not the case now, as they seem to be considered for the sort from your bug report, but ideally isn’t this how they are supposed to be, just a suggestion to the user? :thinking:

Instead of having a drag handle in the suggestion popup, a custom sort for tags in the sorts menu would be a better alternative in my humble opinion

1 Like

Instead of having a drag handle in the suggestion popup, a custom sort for tags in the sorts menu would be a better alternative in my humble opinion

Great idea, had not considered that as a solution — thank you! :grin:

For a different reason (amended to the post above), I still do feel that draggable/moveable options (in the “In this object” menu) would be beneficial; but I can image various scenarios in which your suggestion would be more ideal.
Ultimately, I’d prefer to have both (moveable options + pop-up in Sort field). :sweat_smile:

3 Likes

Is your feature request related to a problem? Please describe.
I’m not sure if this feature has already been implemented. But I can’t seem to manually sort the options I’m selecting inside relations such as tags and status.

As you can see, I’m making a rating system and I’ve no way to move the 5-star option to the top of the selection.

image

Describe the solution you’d like
A clear and concise description of what you want to happen.

image

I propose a manual handle at the side of the options. You can drag it to change the order of the options. Notion’s selection work like this too.

Describe alternatives you’ve considered

A workaround I can think of is writing the selections in order. That way, they’re already sorted (from lowest star to highest star for example).

But I don’t think that it’s flexible. What if you wanted to add more options in the future?

Additional context
I’d like to say I’m just a newbie at this app and I’m still trying to get a good understanding of it. If you guys have any ideas, I’d love to hear it!

7 Likes

Yeah, this is the exact use-case I was looking for.
Initially, my plan was to get around this by naming the column like this:
image
just so I can get the custom sort order I was needing, but that didn’t seem to work.
I could have done so by having an Alphabetical order instead, but that feels too scuffed for my liking.

It’s unfortunate, but I await eagerly to see if this will get implemented and switch fully to Anytype :heart:

3 Likes

Hopefully this is implemented for status relations too when it gets looked at.

2 Likes

I’m also looking for this feature and I’m surprised it doesn’t have any votes. It’s pretty much useless to sort Sets by a Select or Tag property without being able to control the order of the options in those relations.

2 Likes

They are now sorted alphabetically sort you can add numbers in front to manually reorder them. Not ideal, but it’s something. Although, the tag / status menu still sorts them by creation date iirc.

1 Like

Thank you for the reply, didn’t know that’s how sorting works. You’re right, at least it’s something :smile:

Looking for this one. Alphabetical order can work as a patch, but what if you have emojis or other things to represent a status/priority? Manual dragging in necessary, everyone coming from Notion will feel the need for it.

2 Likes

Note: This was originally its own ticket titled “Custom sorting order for status type when used to sort a set” which I opened because I misunderstood what this ticket was requesting and didn’t think there was a topic that already covered it. I’ll hide the parts of this port that I don’t think really add anything to this discusion now that it’s been merged.

Old note

Note: I’m essentially reopening an earlier ticket that was closed since it was originality closed because it had some overlap with another ticket but that other ticket was marked as completed without adding the particular functionality that the first ticket (and this ticket) is/was looking for.

Current behaviour

text

At the moment if you sort a set by a status type relation then the set will be sorted by alphabetical order of the text in of the selected status relation. Sometimes this is what you want but a lot of times it’s not. A common use of a status type relation is to track the status of something (I’m assuming that’s why the relationship type is named “status”) and status tend to have a meaningful order (“todo”, “in-progress”, “done” makes the most sense in that particular order. You probably don’t want this:

Desired behaviour

There maybe many ways of implementing this and I’m sure the very clued in anytype designers/devs can think of better ways of providing an interface for this. But this is how I’m imagining it could work:

Since the “semantically meaningful” order for a status type is probably going to be the same where ever/in most of the places it’s used I think it would make sense to allow you specify this custom order at the relation level. So maybe there’s a new “Set/Edit custom sort order” button (or something like that) under Library → Relations → the status type relation you want to specify an order for. Clicking that gives you dropdown that allows you to drag the fields around like you can do with the groups setting for a kanban view:

Then when setting the order of a set if you pick that status field then along side slightly renamed “Alphabetical ascending” and “Alphabetical descending” options it could include a new option called something like “Custom sort”:

If someone has not yet set a custom order at the relation level then maybe clicking this option would bring up the same dropdown as would be provided if hitting the “Set/Edit custom sort order” on the relation page.

I don’t know how common of a use case this would be but possibly it might be nice to provide a custom order for a specific set (or set view) that overrides the custom order set at the relation level. So maybe when you hit “custom sort” in the list of options to sort a set by and the dropdown pops up allowing to to specify an order maybe there’s a checkbox or a ui or something that allows you to set that order ether globally at the relation level or locally just for this set/set view.

Use case

My particular use case since the sort of tasks on my personal todo rarely have hard date I like to keep track of them with fuzzy/relative due dates. All of them have a Relative scheduled date that has one of these values:

.

Each week I’ll try to go though all of my future tasks and move any of them closer as needed. But if I have a busy week and don’t get a chance to do that then using this approch I don’t have a todo list with a week’s worth of tasks filling up my “Due today” list (like I would if I put calendar dates on each one) making me feel overwhelmed and reducing my moderation to maintain a todo list in the first place. It’s a very similar system to what’s often used with bullet journals which is where I discovered the approach and found that it worked well for me.

I want to be able to sort a set of future tasks by soonest (“This week”) to latest (“Someday” or “On hold”). At the moment use a kanban view on desktop since it will let you provide a custom order for the columns

.

But since the kanban view doesn’t work on mobile yet I also need to use some other views with the grid layout to see my tasks on there. However since you can’t provide a custom sort order for status type relations that is also a bit of a pain to use since I have quite a lot of tasks so scrolling though them to find where the next relative scheduled date when they’re out of order is a bit of a pain. So I’ve also made separate views for each relative scheduled date since you can order views however it’s presently a bit clunky to change between views on mobile you do it a lot.

What I really want is just be able to see all my upcoming tasks all on the screen at once, sorted in order from soonest to latest, and be able to look at that list in both the desktop and the mobile app. I’m not aware of any workarounds to do that (other than the one listed bellow which has it’s own drawbacks as mentioned) but if anyone has any suggestions I’m all ears!

Workarounds

text

The only real work around at the moment is to provide some prefix to the status value to force it to be the order you want when sorting alphabetically (generally using numbers, 1 - , 2 - , etc).

But it is definably not ideal to having numbers at the start providing visual clutter and making things harder to skim in a list, etc. And if you already have a lot of objects with a status type relation that you want to sort in a particular order (I currently have 122 objects using the relation I want to sort) then since there’s no way to bulk edit objects yet it’s a major pain in the bum to go though and individually add a number to each one. Even if you do that then should you wish to add a new value to your status field at some point in the future and you want that value to be ordered somewhere near the beginning then you’ll need to re go over every object that has a value that should be sorted after the new one and increase the number at the start of the value.

Additional info

Anytype/device technical details

Device: computer-hostname.lan
OS version: darwin arm64 13.2.1
App version: 0.33.3
Build number: build on 2023-07-18 21:58:21 +0000 UTC from at #087b1bff0634dc85980f1fb0cd8fcff4512e960c(v0.27.15)
Library version: v0.27.15
Account ID: A7jEYifY7VxjfYu18ucLydmd3rRQnwcdEyHGVvc8Y7D2TnWC
Analytics ID: 1491a2c4-5805-4f43-9064-b12896b694de
Device ID: A9ThSEMCYsXBvTqcsMi1tkqTaBZfMQixdAsHMMWnvSWtqG4d

Thanks for reading/your consideration!

3 Likes

This is a must have

1 Like

Is there any workaround for this one that I am missing? A side from deleting and add them again… (which could be painful if you already have many objects related).

For the tag / status picker unfortunately no. They all listen by creation date always.

Yikes, this is kinda a deal break for me trying to switch over from Notion where I use that all the time for stuff like status, priority etc. Would love to hear if people wound any workarounds!

2 Likes

The workaround is to just delete tags and create new ones, but since there is no batch editing either, it will take you a while to transfer all of your old tagged objects to the new tag. :sweat_smile:
It’s just something you need to deal with at the moment. At least the sort order is now alphabetical so you can just use numbers at the beginning for that.

My workaround : keep my PKM (in Evernote, with extensive use of tags), while we wait for the tags to evolve in AT (and since imports aren’t working properly at the moment, that’s at least 2 reasons to wait :slight_smile: )

I can’t wait, but sometimes you just have to be patient. :stuck_out_tongue_winking_eye:

A quick temporary fix for this would make it so that these entries are also sorted alphabetically which would make it possible for users to sort them however they want by prepending the entries with numbers.

1 Like