try using strcmp and C-style locale collation