[TableGen] Sort pattern predicates before concatenating into a string so that differe...