trials
sorted array