On block ordering of variables in graphical models