Add sorted take optimizations

closes #880

Should be good enough, I think.
if you `take(0)` it should be empty, but we don't have an empty grouped. filtering everything should work.