I've ordered the parameters by importance. 

As the content of the fieldset seemed to me the most important one. A legend, which possibly might not be existent is placed before the content in HTML-output, but I couldn't see it as important as the content, so I placed it as second. And the third parameter would then be the template-span-tag that might also be empty.