navidrome/utils/str
Deluan b0cb40b029 feat: add custom NATURALSORT collation for natural number ordering
Register a custom SQLite collation function (NATURALSORT) that compares
strings using natural sort ordering, where embedded numeric sequences are
compared as numbers rather than lexicographically. This fixes the issue
where albums like "Bravo Hits 1-132" sort as 1, 10, 100... instead of
1, 2, 3... 10, 11...

Closes navidrome/navidrome#4891
2026-02-17 09:00:15 -05:00
..
natural_sort.go feat: add custom NATURALSORT collation for natural number ordering 2026-02-17 09:00:15 -05:00
natural_sort_test.go feat: add custom NATURALSORT collation for natural number ordering 2026-02-17 09:00:15 -05:00
sanitize_strings.go refactor: run Go modernize (#5002) 2026-02-08 09:57:30 -05:00
sanitize_strings_test.go feat(bfr): Big Refactor: new scanner, lots of new fields and tags, improvements and DB schema changes (#2709) 2025-02-19 20:35:17 -05:00
str.go refactor: run Go modernize (#5002) 2026-02-08 09:57:30 -05:00
str_suite_test.go Refactor string utilities into its own package str 2024-06-05 22:09:27 -04:00
str_test.go refactor: extract TruncateRunes function for safe string truncation with suffix 2025-11-06 14:27:38 -05:00