Re-order rules for JetBrains legacy project format

Fixes #1090 - this is the part of that PR that seems justified.