Added sorting to list.