script: fix traditional sort

Change-Id: If71cb15853702b441c93880d34c214e419918c84