script: fix traditional sort

Change-Id: I6ad77dbd5215a281a60ed430b31933caf9cc84af
script: make osx devs happy

Change-Id: I7631a2999d0ec79835c44ab213187ade7def0663