script: fix traditional sort

Change-Id: I7d77d933d834d043f219641219e5a00cfc18448c
Merge branch 'cm' into HEAD