def order_terms_in_binding(result_vars, binding):
    """Convert a binding into a complete ordered list of terms ordered
    in accordance with result_vars

    :param result_vars: Vars list from SPARQL JSON results
    :param binding: Item in bindings section of SPARQL results JSON
    :returns: A list of RDF terms
    :rtype: list
    """
    return [binding.get(result_var) for result_var in result_vars]