A novel rank-based non-parametric method for longitudinal ordinal data