Understanding the sorting with no filter

What do you need help with?

Hello there, I hope people will be able to help me understand.
I created a type (places), then objects of that type. I created the objects in alphabetical order.
Then I created another type (orders) then associated objects I created as “orders” with “places” (to be delivered to).
The thing is, when I try to sort the orders by the places, I get a random ranking. While I want to sort them by alphabetical order of the “places”.

What exactly is the base sorting when you sort by object types ? How can I manage to sort by alphabetical order of the object ?
I also tried to see what happens when I remove the sort options of the objects “places”. I get what seems a random ranking, the same I get with the association.

I hope I stated my problem clearly enough for people to understand, and maybe have an answer.

First screenshot is my direct problem, showing the objects “orders” (commande), sorted by “places” (sites). Shown the random ranking.
Second screenshot is simply the set of “places” without any sort options. It isn’t sorted by creation date or anything, looks random.

Image or Video


OS

Ubuntu 22.04.4 LTS

Anytype Version

0.42.5

Network Mode

AnySync

Technical Information

Version de l’OS: linux x64 6.8.0-40-generic
Version de l’application: 0.42.5
Numéro de version: build on 2024-08-28 17:25:05 +0000 UTC at #3647351f8c8586b053944c998243cc2e15122d22
Version de la bibliothèque: v0.35.5
Identifiant Anytype: A6DtCCqZ96gEJhDMApLsF5Z1c63vE891jv63yZKQMQpKz2wg
ID Analytics: 8b7b747e-1d6a-43d7-858c-4d6bb32c74ec
ID de l’appareil: 12D3KooWDBefMCPQJWx9gYW32ESpUaSZ5rTRggSLky9LXymU7K1s

Just add Sort by Name - Ascending.
But don’t forget to move this sorting in first place (over Service and Sites) because there is a priority order in sortings.

It doesn’t work as “name” are numbers, not the “sites”. I want to sort by alphabetical order of the names of the objects “sites”.

That might be an interesting and useful Feature request then!

Otherwise, you either rework your whole Objects process to put Sites as the mains Objects in the Set, or have a set not based on Object type but on Relation, that can be ‘Sites’ that become a Text or a Select/Multi-select Relation instead of Objects, which you can add in every Objects of your so that your Set will sort everything related to this Relation :wink:

Sadly, I need the object type of “sites”. Because inside these objects there are physical adresses, name and phone number of the manager and stuff like that.
Seems a bit useless to create relations while the same objects already exists.

There is indeed an issue, I think it should sort by the name of your Object, but it doesn’t work as intended. @Filip We need a clarification to know on which value an Object Relations sorting is based, is it the name, the creation date?

Anytype_8Qzfn0db9S

Sorting in Sets by Relations that have Object format is a rather tricky question :thinking_face:

Relation values are lists of Object IDs, meaning the sorting is done by Object IDs rather than by their names. We will bring this issue up with the Go team for further discussion and report back.

Thank you for the answer !
Hope you’ll be able to change it in the future.

This issue has been fixed by the Development Team and will be implemented in an upcoming release.