Miniature ponies had to swim to safety while sheep were brought to safety by volunteers.