script: fix traditional sort

Change-Id: Icc224f60cfd4b16bc13094a78405ef223dbe11ac
script: make osx devs happy

Change-Id: I9006452d0325ab8836452db82f8e591e27359611