It seems like a problem where Windows doesn't show extensions in the explorer, while Mac does. So when sorting, Windows uses the names without extensions and Mac uses the names with extensions.