Change ranking function
* Select head base+1...index.size and reverse
* Select tail index(0)...base
* add tail to reversed head