script: fix traditional sort

Change-Id: Ic4ef9bc4d56fdf8e3671defa6a577ed4db011fa0
Merge pull request #2 from CyanogenMod/cm-11.0

script: fix traditional sort