add tsortRow to make sure the resuslt file is in order
TBD-1162: Append test case to illustrate the bug
Merge branch 'maintenance/5.6'