Use an electrified backing gate. They punish the less dominant cows and create fear.
"Backing gates are not essential for good cow flow into the dairy," says Darold. "Many farmers use less expensive options such as sweep gates or tape. However, when used with care, backing gates are effective at reducing yard size.
For more information refer to the CowTime Guidelines (Chapter 4, pp 76, 77), available at Technical Information