fixes #112

So with this fix, I was able to restore an index for xCA with 300,000+ entries and then was able to sort on the results

![screen shot 2014-12-19 at 9 22 21 am](https://cloud.githubusercontent.com/assets/934364/5505619/8f262980-8760-11e4-88bf-1276b795a802.png)