Skip to content

gendex: Sort directory names in findLast#123

Merged
andydotxyz merged 1 commit intofyne-io:mainfrom
MaxGyver83:fix-gendex-findlast
Mar 22, 2026
Merged

gendex: Sort directory names in findLast#123
andydotxyz merged 1 commit intofyne-io:mainfrom
MaxGyver83:fix-gendex-findlast

Conversation

@MaxGyver83
Copy link
Copy Markdown
Contributor

findLast returns the last subfolder for a given directory but the subfolders are in random order.

fmt.Println(children) prints for example:

[android-32 android-36.1 android-25 android-29 android-33 android-31 android-34 android-36 android-35 android-28 android-30]
[35.0.0 36.1.0-rc1 36.0.0 33.0.1 28.0.3 36.1.0 34.0.0]

With this PR, the subfolders are sorted (in alphabetical order) before the last one is picked.

@andydotxyz andydotxyz merged commit 927cf03 into fyne-io:main Mar 22, 2026
7 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