 The Jordan–Hölder theorem is a more general result for finite groups (or modules over an arbitrary ring).In this generality, one obtains a composition series, rather than a direct sum.The Krull–Schmidt theorem and related results give conditions under which a module has something like a primary decomposition, a decomposition as a direct sum of indecomposable modules in which the summands are unique up to order.