Updated sort order of array type params to match API encoder