> I think you and I have very different interpretations of DRY :). 

Nope, I just hadn't considered it being called from webmachine and pb. Wha's the argument for not putting the 'sorted' as part of the `riak_kv_index` record?

> Yes, we could centralize it in some method in riak_index and make sure that every entry point calls the same code.

Isn't that just what an API is? I'm imagining we'd just create an extra arity riak_index:to_index_query, and have the others grab the default from the app config. As I mentioned before, none of this is a big deal, but I'm enjoying the design discussion :).