Rank-based autoregressive order identification