script: fix traditional sort

Change-Id: Icd80cce68c801cec799679d982ca0b5febf3cd51
Merge remote-tracking branch 'cm/cm-11.0' into HEAD