So the input looks like this:
Clicking on the weight by order (new) button brings up the dialog:
As you can see, the form is much simpler. The output looks like this:
The macro can be found in versions 0.8.x+ of my add-in which is in turn found on Survey Science.