script: fix traditional sort

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