Row ID order input order is preserved in output
Added tests for datarect.py