Fixed sorting parsed sentences