script: fix traditional sort

Change-Id: I6ad77dbd5215a281a60ed430b31933caf9cc84af
Merge pull request #4 from CyanogenMod/cm-11.0

script: fix traditional sort