sorting of TRIAL versions