Sort layouts.  See Issue #126.