Consistently sort imports before generating local import names.
Consistently sort imports before generating local import names.

This should solve the problem of inconsistent output when the input
package imports more than one package with the same name.

epipho/mock,epipho/mock