DDF-76 Fixed a bug where Solr Catalog failed to parse certain queries

Due to a bug in how Solr parses sorted queries, geospatial query operands
must be the first operands in a query expression or else the parser will
error out. This fix makes sure that geospatial query operands are moved to
the front of any operand list before a full query expression gets built.
Merge remote-tracking branch 'upstream/master'
DDF-76 Changed how Solr operand reordering works

It turns out that the issue was with sorted distance operands, not spatial
ones. Reordering now looks for any sorted distance operands (of which
there is guaranteed to be only one) and then will move it to the front of
the operand list before the expression gets built.
Merge pull request #12 from lamara/master

DDF-76 Fixed a bug where Solr Catalog failed to parse certain queries