Sort logs and display ranks
