ENG-6761-sqlcoverage-fails-in-normalizer

It fails because there is None element in the list when we want to sort the list. So I just create a custom version of comparison function, and use that instead of the default cmp.

This is just a simple idea, and may introduce other bugs. Please feel free to discard it if it cannot solve the problem.