Added sorting classes to index pages