puppetlabs/puppetdb — pull request #727 by grimradical (2013-10-24 02:16:18+00:00)
Title: (#22960) Don't automatically sort fact query results

Previously, we'd sort fact query results by default, regardless of
whether or not the user has requested sorting. That incurs a performance
penalty, as the DB has to now do a costly sort operation. This patch
removes the sort, and if users want sorted results they can use the new
sorting parameters to ask for that explicitly.