[ORB-367] implemented richw's fix for row ordering