YAMS provides support for sorting language-specific TVs by the ’Sort order’ value on the "Create/edit Template Variable" page.
We never use this when creating template variables and control the sort order on each template ("Create/edit Template > Assigned Template Variables > Edit the TV sort order"). This patch provides support for this.
No attempt has been made to support both approaches to sorting - I cannot at present think how this would work.
The patch has been made against YAMS 1.2.0RC3.