Fix "sort_order" bug in catalog query view.

The problem is that the catalog does not support unicode strings.
Merge pull request #6 from 4teamwork/jone-catalog-query-encoding

Fix "sort_order" bug in catalog query view.