def METHOD_NAME(charge):
    # Get charge damage type and total damage
    chargeDamageType, totalDamage = getChargeDamageInfo(charge)
    # Find its position in sort list
    try:
        position = DmgTypes.names().index(chargeDamageType)
    # Put charges which have non-standard damage type after charges with
    # standard damage type
    except ValueError:
        position = math.inf
    return position, totalDamage, charge.name