Added sorting, pulling by date