They are the same.
The coding style comes from C/C++ where mistakes like
if (variable = value)
are easy to write when
if (variable == value)
was meant. At most a compiler warning is emitted. By consistently writing the r-value first, unintended assignments are avoided since attempting to assign to a r-value is a compile-time error.