Added sorting method to main list

Can probably use the same method for the comments...