Get the list of txs that sent this value hash, ordered by block and vtxindex

def namedb_get_value_hash_txids(cur, value_hash):
    """
    Get the list of txs that sent this value hash, ordered by block and vtxindex
    """
    query = 'SELECT txid FROM history WHERE value_hash = ? ORDER BY block_id,vtxindex;'
    args = (value_hash,)

    rows = namedb_query_execute(cur, query, args)
    txids = []
    
    for r in rows:
        # present
        txid = str(r['txid'])
        txids.append(txid)

    return txids