Fix manual sorting in tl_metamodel.