Added code to reorder Dynamic Data columns

Fixes #1071.