script: fix traditional sort

Change-Id: I5b2cc22c2fb0ba89e2b5a4f373d572329940122b