How does Shakespeare work loyalty and betrayal into the play King Lear.

Context of order vs. chaos?