script: fix traditional sort

Change-Id: I5d7e1cb4fa9d110e1f72945acb6787b25989dffd