Fixing of rowReduce --> Added sortByRank