IntelliJ project configuration: fix order of entries in community/.idea/modules.xml
IntelliJ project configuration: fix order of entries in community/.idea/modules.xml

Otherwise the file is modified when the project is saved (IDEA-222874). Also a test has been added to prevent such problems in future.

GitOrigin-RevId: a5ac1bd131dafd67f32230f0054b2410627bba8f
allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community