small refactoring
MV-17 button to toggle sorting in property panel

the implementation is not pretty, but the documentation in confluence
suggests no other way than to remove and re-add the whole macro with the
same contents, but different parameters. meh.
test refactoring