added sorting to main channel view