This fixes the the issue of task order not being saved.
The task sort preference was not being saved in the javascript.
Introduced it in this commit.
Merge pull request #485 from ari/viks-task-order-not-saved

This fixes the the issue of task order not being saved.