Create sortline.m

sortline function