sorting test on frames