Added x/y sorting to grid layout
Added x/y sorting to grid layout