sort by width
cleanup