reorder and squash white space.