Closed dr-nathan closed 1 year ago
I think it should be possible to not sort them before delivery. I do not remember exactly why it was decided to sort the options but I thought they came in different orders at different times, but that was years ago.
There are two possible solutions:
unsorted_options
property to the DisambiguationError
that is in the order that they cameThe order provided is kept, I believe, in the details property which keeps the name and URL to the new page. Perhaps that is what you are looking for?
Hi Barrust,
Thanks so much for the incredible package. Really cool!
One thing I noticed, is that when you get a disambiguation page, the possible options are ordered alphabetically. So when you do e.options[0], it will almost never be the correct page.
is there any way of preserving the order of links on the disambiguation page on Wikipedia?
For example:
will return "Hollywood" (Car Seat Headrest song)", while you'd want "Hollywood (Los Angeles)" to be selected, because it shows up first on the Disambiguation page of Wikipedia. Is there any way to have the disambiguation page show options in order of relevancy, i.e. the same order as on the Wikipedia page?