script: fix traditional sort

Change-Id: Icc224f60cfd4b16bc13094a78405ef223dbe11ac