script: fix traditional sort

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

script: fix traditional sort