Move sorting by autonym out of sortByScriptGroup

This commit is contained in:
Amire80
2018-05-22 16:59:34 +03:00
committed by Niklas Laxström
parent 16d6409be1
commit 5135498b2c
2 changed files with 2 additions and 4 deletions

View File

@@ -127,7 +127,7 @@ describe( 'languagedata', function () {
languagesAM = [ 'atj', 'chr', 'chy', 'cr', 'en', 'es', 'fr', 'gn', 'haw', 'ike-cans', 'ik', 'kl', 'nl', 'pt', 'qu', 'srn', 'yi' ];
assert.deepEqual(
languageData.sortByScriptGroup( languagesAM ),
languageData.sortByScriptGroup( languagesAM.sort( languageData.sortByAutonym ) ),
[ 'atj', 'gn', 'en', 'es', 'fr', 'haw', 'ik', 'kl', 'nl', 'pt', 'qu', 'srn', 'chy', 'yi', 'ike-cans', 'cr', 'chr' ],
'languages in region AM are ordered correctly by script group'
);