flip parameter order

https://issues.scala-lang.org/browse/SI-6481
Merge pull request #1226 from xuwei-k/request/flip-param-SI-6481

flip parameter order