sorting search working and tba is sorted at random