I grouped the wrong layers; how can I ungroup?

Drag the layer below or above the grouped layers until you see a blue line and let go; it will no longer be indented/grouped.