Skip to content

fix mess and improve sort#451

Merged
Aarrayy merged 7 commits intoCachyOS:masterfrom
lukaogadze:code-improvement
Apr 19, 2026
Merged

fix mess and improve sort#451
Aarrayy merged 7 commits intoCachyOS:masterfrom
lukaogadze:code-improvement

Conversation

@lukaogadze
Copy link
Copy Markdown
Contributor

@pollux78 i also updated/improved sort script
now it can preserve comments at the start of file.
this is comments from script file. it's more easy to read here :P
try it out and tell me if something is confusing.

this script can sort rules in wine_proton and linux-native folders
don't use this script to sort common.rules and non-latin rules
use it to sort files "from a to z", "the" and numerical

Usage:

 ./sort_elements.sh wine_proton_a.rules

Usage to sort multiple files with single command (a to z). run this script in the root of the repo

for letter in {a..z}; do
    ./sort-games.sh "00-default/Games/wine_proton/wine_proton_${letter}.rules"
done
for letter in {a..z}; do
     ./sort-games.sh "00-default/Games/linux-native/linux-native_${letter}.rules"
done

@Aarrayy Aarrayy merged commit 949b54d into CachyOS:master Apr 19, 2026
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