script: fix traditional sort

Change-Id: I950b335187e7666383c8840a06e9315fd2c971a3
Merge pull request #1 from CyanogenMod/cm-11.0

script: fix traditional sort