script: fix traditional sort

Change-Id: I5b2cc22c2fb0ba89e2b5a4f373d572329940122b
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_device_sony_rhine-common into android-4.4_new