Here is a table with a header that you can click on and drag and drop to rearrange the order of the columns. It was designed using sortable.js.
If you are having trouble with the pen, try the archived copy on GitHub
Sortable Table Snippet
See the Pen Sortable columns by josh (@jlapinski) on CodePen.0