script: fix traditional sort

Change-Id: I23fe22b74f9ac8cd6a09d932f1f4493850c6e7d2