script: fix traditional sort

Change-Id: I1ad196e9b38281e2c9f17be3c6728ad1dd314bc9
script: make osx devs happy

Change-Id: I5ac9d9a607cd41cb74bcd4db7196e2f1f182d912