Initial attempt at sorting layout.