Create sortline.m

sorts the characters according to their x- coordinates and y- coordinates