[BUGFIX] Support Lazy ObjectStorage as sortBy in iterator.sort

Fixes: #267
Merge pull request #269 from NamelessCoder/lazyiterator

[BUGFIX] Support Lazy ObjectStorage as sortBy in iterator.sort