Skip to content

Add Weights to Tags to enable custom ordering - #215

Merged
aJanuary merged 2 commits into
mainfrom
TagWeights
Sep 10, 2026
Merged

aJanuary merged 2 commits into
mainfrom
TagWeights

Conversation

@lostcarpark

Copy link
Copy Markdown
Owner

This change adds "weight" to tags, that will be used in ordering:

  • Tags with equal weights will be sorted alphabetically.
  • If "new style" tag in source file, allows weight to be specified as a property of tag in file.
  • Default weight for each tag can be set in config in TAGS.WEIGHTS[], with each element having the format: { "VALUE": "session_streamed", "WEIGHT": -5 }.
  • Any tags not set in schedule file or config will default to "0".
  • Negative weight values will force items to the top of the list, positive will drop them to the bottom.
  • Tag categories that wish to remain alphabetic don't need any changes - they will default to weights of "0", and as all tags have the same weight, they will fall back to alphabetic order.
  • People tags also support the same weights.

@aJanuary
aJanuary merged commit d971d4f into main Sep 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants