def get_LDC(curve):
    """
    Calculates load duration curve (Jahresdauerlinie)

    Parameters
    ----------
    curve : thermal or electrical curve

    Returns
    -------
    sorted curve : sorted load duration curve
    """
    return sorted(curve, reverse=True)