script: fix traditional sort

Change-Id: I15db0cdd1560d8758345613115332e6f699c1b98
script: make osx devs happy

Change-Id: I4e4ffcb75f3e5939053f8e6e00103adf618d5cfe