Partial implementation of rankall