script: fix traditional sort

Change-Id: I784ab6a2589ba11b1d91750d2d6330c142fcfcfd