sorted tr problem