sort list of workdirs