Sort import lines