line sorting test