From a simplistic viewpoint, when you put on the brakes, the shoes are expanded outward until they contact the drums. Assuming that you are going forward, rotational forces from the drums rotate the shoes forward until the rear shoe engages the post at the top, above the wheel cylinder. At this point maximum braking force is available with the rear shoe providing more of the braking force - hence long shoe goes to the rear.