Added sorting to history results. Newest first.