Sort list of KEY, UNIQUE KEY and CONSTRAINTS to ignore
ordering differences due to applying SQL upgrade scripts.