preserve branch ordereding in TreeBuffer and update test_csv.txt