line sorting events