on second thought, sort width in nondecreasing order