script: fix traditional sort

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