Added sorting to log view