script: fix traditional sort

Change-Id: I499e4c258042da9f2c20d9b95177ef97c461bdfc