Added sorting
Added sorting