Sorted the blocks and put the correct type name in the course page