[nim, dj] Undid reversing of rows based on discovery during testing with real sudan data, refactored