Moved rank_expression parameter to the end of passed arguments

This will help to not negatively affect people using positional
arguments (as recommended by @kopertop.)