Sort the log descending based by its key