Added sorting to sections