Sort export lines