fix layout block sort order problem