script: fix traditional sort

Change-Id: I56f87d37acbd77b31c1814cf367f8504a68efc50
script: make osx devs happy

Change-Id: Ib49a8104e499d5dd1531c6dc8919e276b97daae1