Implement incremental sorting for row IDs. (#42)
Add tests for incremental sorting. (#42)