LPS-33282 fix sorting layouts in when using Site Templates