[Not a bug] A tiny bug when sorting by name

Hi there is a tiny issue when sorting by name in layers panel as you can see picture a1 layer is at the top then it goes to a10 but I have a1 to a31 layers ! But it’s a tiny bug
Here is the pic


Iam using 1.5.0

After a19 does the next group start with a2, a20, a21…?

Yes
It goes like this
A1
A10
A11
A12
A13
A14
A15
A16
A17
A18
A19
A2
A20
A21
A22
A23
A24
A25
A26
A27
A28
A29
A3
A30
A31
A4
A5
A6
A7
A8
A9
Am actually now that I typed it I think I saw the problem it dosent see numbers as hole numbers it counts the first digit and ignores the rest

Sorry for the delay…

Yes, you’re right. Also, to add you’re sorting text so the first no is used only.

BTW, this is not a Synfig bug but rather an enhancement/new-feature suggestion because we’re using the default GTK sorting tool, not ours. Synfig doesn’t have its own custom sorting logic for this right now.

1 Like

The most simple is to rename the layers inserting a leading 0
A1 → A01

Implementing a “natural sort order” could lead to other issues, for example in the case you want to use a numbering like hierachy of sections/subsections.

4 Likes