Sorting import sentences