When no sorting was selected, `result` was a `odict_items` which is not subscriptable, so the slicing was failing.