Added sorting functionality (full).