Reorder methods to comply conventions (recommended by SonarQube).