Restored sorting of logs in getRecentLogs().