doc generation: fixed attribute and possibilities order