script: fix traditional sort

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

script: fix traditional sort