Sort imports of existing code