texstudio
texstudio copied to clipboard
Labels in Structure need be sorted
Environment
- TeXstudio: 4.2.2
- Qt: 5.15.2
- OS: Windows 10
- TeX distribution: texlive
Expected behavior
Labels in Structure panel should be sorted alphabetically so that it is clear which of them are available or not.
Actual behavior
Currently, labels in Structure panel are not sorted alphabetically as shown in the image below:

How to reproduce
Open a tex file and click on Structure->Labels on the left. This will show the problem.
I believe that curently the sort order is given by order of the \label statements in the text. What I used to do is when starting to create a new label this can be seen immediately in the labels subtree on the left (when you use autocompletion for \label). So I can see which labels I used nearby in the text. From this I would like to suggest to have quick access to select the current sort order I need. BTW: It's very nice that we can see for \label how often the label is used including a list of the text passages and for \ref where the label is defined (including a quick preview ot the text).