Skip to content

How to control sorting of topics? #393

Closed Answered by emin63
emin63 asked this question in Q&A
Aug 21, 2021 · 3 comments · 5 replies
Discussion options

You must be logged in to vote

TL;DR: Your hints helped me figure it out. See https://github.com/emin63/magit-priority-example for the code I wrote (based on your hints) to achieve the goal and explain why. If you think this is generally useful, I would be happy to create a pull request to merge it into the main code base. Longer discussion below.

You are not saying why you want to sort by labels but I assume it is so that topics (i.e. rows) that have the same can be made to appear next to each other. Because a topic can have more than one label no amount of sorting would cause e.g. "albatross, bug" and "zebra, bug" to appear close to each other, without any non-bugs in between.

Good point. What I wanted was filterin…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@emin63
Comment options

@tarsius
Comment options

@emin63
Comment options

@tarsius
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by emin63
Comment options

You must be logged in to vote
1 reply
@emin63
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants