Added sorting in the dashboard