Small tweaks to the query planner to get it to try harder to use an index
for sorting and to avoid using automatic indexes on constant terms.

FossilOrigin-Name: 2d9de154f8f398d66693a4bc35eef1353ae61728
3 files changed