I've heard this referred to as a "gay tail". Not sure what causes it, but it's so cute. There is also something called a "kinked tail" and a "challenged tail."
In the picture, the gay tail is the 4th picture, the one that curls over the back. This is standard in other breeds, such as the Maltese and the Shih Tzu.