Sort modifiers quick-fix can be used to amend the code automatically.
Examples:
private inline fun correctOrder(f: () -> Unit) {} // <== Ok
infix private fun Int.wrongOrder(expr: Int) {} // <== wrong order, quick-fix amends the modifiers to "private infix"