Compress the degree columns together.