Fix table sorting for pagerank