Report error if the entityname reference in the import declaration is us...

Report error if the entityname reference in the import declaration is using private module
hm.. sorry I thought you were talking about the code that was patching asynchronous code. The sort is not needed here. I am updating it.