fixed card sorting with language set to non-english (fixes #232)