Java isn’t missing any grammar rules. The Hungarian collation in OpenJDK follows the Unicode/CLDR standard, where accented letters (like É) are treated as secondary forms of their base letter (E). Because of this, the traditional Hungarian dictionary order (A < Á < B < C < Cs … E < É) is not applied by default.
No built-in Java Collator implements the full Hungarian dictionary alphabet.
If you need the real Hungarian dictionary order, you must use a tailored collation. For example, with ICU4J:
Collator coll = Collator.getInstance(new ULocale("hu@collation=dictionary"));
This collator follows the correct Hungarian dictionary rules, including treating E and É as separate letters.