def METHOD_NAME(variables):
    variable_order = tuple(locals_scope.getProvidedVariables())
    return sorted(
        variables, key=lambda variable_desc: variable_order.index(variable_desc[0])
    )