Add Ord instances for GHC.Generics (#7263)