Changes for logs (sorting)