script: fix traditional sort

Change-Id: I707562d608fabc40db0c85b3967c0e7e1139325b