core: alphabetize query.go
core: alphabetize query.go

Simple cut and paste change to make navigating the file a little easier.

Closes #410

chain/chain,chain/chain,chain/chain,chain/chain,chain/chain,chain/chain