How to rearrange columns through script

Hi,

Any one help me how to rearrange the columns of dataset through scripting

Use system.dataset.filterColumns. It can rearrange as well as drop.

Does it NEED to be a script ?

expressions can do this:
https://docs.inductiveautomation.com/display/DOC81/columnRearrange

Yes i need it in script