A
A
aqau1232021-11-21 17:48:20
Python
aqau123, 2021-11-21 17:48:20

How to sort an array by the original array?

there is an initial array
['test', 'promo', 'demo']
, it is much larger, but this is so for an example.
in general, these keywords will send a lot of asynchronous requests to api one, and at the output I write the result to another array.
and the result is an array in a different order.
let 's say
['demo', 'test', 'promo',]
how can I make this array sorted as the original?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexander, 2021-11-22
@Survtur

And you store the result not in an array, but in a dictionary, where the key will be the original word or the index of the word in the initial array.

O
Optimus, 2015-03-19
Pyan @marrk2

Yes, Google "ranks links" (more precisely, it ranks with the help of links). There is also an opinion that links actually work in Yandex, here is an experiment bablorub.blogspot.ru/2015/03/blog-post_11.html

M
Mikhail Lyalin, 2015-03-19
@mr_jok

if the links are "unpurchased" according to search engines

R
Roman Penin, 2015-03-21
@Anigilator

I recommend white hat SEO. Or rather, switch to SEM (Search Engine Marketing), as in Europe / USA.
Think about people, make quality content, improve usability. And the reference - due to informational reasons, guest posts, press releases, helping people on forums, etc.
Then the links will not just be "natural" and working, but will also provide pertinent traffic.
And about sape.ru, especially without experience - better forget it. Spend money, spam the anchor list.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question