Base: Fix bug sorting log data