Standardize the order of the arguments to (y, M)