[merge] Sort script records
diff --git a/Lib/fontTools/merge.py b/Lib/fontTools/merge.py
index d71ed77..0faa8b5 100644
--- a/Lib/fontTools/merge.py
+++ b/Lib/fontTools/merge.py
@@ -353,7 +353,7 @@
 
 otTables.ScriptList.mergeMap = {
 	'ScriptCount': sum,
-	'ScriptRecord': sumLists, # XXX sort
+	'ScriptRecord': lambda lst: sorted(sumLists(lst), key=lambda s: s.ScriptTag),
 }
 
 otTables.FeatureList.mergeMap = {