Sorting imports