FreeCodeCamp's Wikipedia Viewer example code


I’d just like to know why on the FreeCodeCamp’s own Wikipedia Viewer does not return relevant results closer to the top of the list?

Would this be a more advanced implementation?

In the image below you will see that “jasmine tea” is the 6th result.

You are correct. You should review the official documentation for how to implement. Also, do a search on the forum here and you will find some great topics concerning how you would do this.

The app displays the results in the same order that Wikipedia returns them in. I think the reason for the wonky ordering is because of the way the app makes its request. It would technically be simple to fix this bug, but Wikipedia’s API is pretty dense and it’s difficult to get the URL to return useful data, so practically speaking it’d be a time sink.