No, that is based on your expectation, the Windows collation is just as valid.
Anyway, try my above function, that is consistent between platforms:Unix collation order. A before a.
You are right about the python order, that uses the default Unix collation.
(But that is not Unicode standard collation)
BTW If the Windows version is proven wrong, the error is in the inline assembler code.