added sorting to agenda in sidebar