add rank record sorting