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.