Added permissions check to sort on content controller