Skip to content

fix(graph): sort drive in "natural" order#2657

Merged
rhafer merged 1 commit into
opencloud-eu:mainfrom
rhafer:drives-natural-sort
Apr 23, 2026
Merged

fix(graph): sort drive in "natural" order#2657
rhafer merged 1 commit into
opencloud-eu:mainfrom
rhafer:drives-natural-sort

Conversation

@rhafer
Copy link
Copy Markdown
Member

@rhafer rhafer commented Apr 22, 2026

Instead of doing a lexical sort we sort the drive/space in a more "natural" order so that e.g. "Space 2" is sorted before "Space 10".

Please note that the PR is so huge, because "golang.org/x/text/collate" pulls in golang.org/x/text/collate/tables.go which is generated from the unicode collation tables. I still think its preferable over other "natural" sort implementations because it's well maintained and stable and we're already using many other pieces from the golang.org/x/text universe.

Related: opencloud-eu/web#2430

Instead of doing a lexical sort we sort the drive/space in a more
"natural" order so that e.g. "Space 2" is sorted before "Space 10".

Related: opencloud-eu/web#2430
@rhafer rhafer requested review from aduffeck and fschade April 22, 2026 15:35
@sonarqubecloud
Copy link
Copy Markdown

@rhafer rhafer merged commit e2f3227 into opencloud-eu:main Apr 23, 2026
60 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.

3 participants