script: fix traditional sort

Change-Id: Icd80cce68c801cec799679d982ca0b5febf3cd51
Merge pull request #3 from CyanogenMod/cm-11.0

script: fix traditional sort