Hacky fix to get query sortation saving and loading in wp view.

This is most certainly not the nicest way to do this but it's being reimplemented in the new api anyway and this makes it functional for now.
Merge pull request #1359 from opf/fix/8002-angular-save-query-sortation

Hacky fix to get query sortation saving and loading in wp view.