sorting layout structure