LC_COLLATE=C sort

This variable governs the collation rules used for sorting and regular expressions. Setting the value to C can for example make the ls command sort dotfiles first, followed by uppercase and lowercase filenames

https://wiki.archlinux.org/title/locale