script: fix traditional sort

Change-Id: Icc224f60cfd4b16bc13094a78405ef223dbe11ac
Merge pull request #15 from CyanogenMod/cm-11.0

script: fix traditional sort