[ticket/12374] Fixed alphabetical sorting

PHPBB3-12374