Add sorted take optimizations

closes #880

Should be good enough, I think.
Alphabetical order.