Added sorting of list