Site
Home / Forum / Developers / Way to sort search response?

Way to sort search response?


Posted: 19 Mar 2024 23:37
Bra_Gerald
Posts: 1
Joined: 2024-02-23

Is there currently a way to search results?

For example, if I search "Salah", a popular footballer like "Mohammed Salah" isn't usually in the top 3 or 4 results.
Is there currently a way to sort the results by a metric like popularity?

Posted: 20 Mar 2024 10:15

zag
Posts: 3,330
Joined: 2020-03-23

Is there currently a way to search results?

For example, if I search "Salah", a popular footballer like "Mohammed Salah" isn't usually in the top 3 or 4 results.
Is there currently a way to sort the results by a metric like popularity?


Currently no way to do that at API level, but on the client side you could perhaps sort the results you get by ID. The most popular sports people will have lower ID's most of the time.


Who is Online?

In total there are 68 users online :: 3 registered, 0 hidden and 65 guests (based on users active over the past 5 minutes) Most users ever online was 424 on Fri Nov 10, 2017 9:02 pm

About Us

Discussion forum for TheSportsDB.com site and related topics

Rules

- Be Polite
- Respect other users
- Always post log files with issues
- Try to be helpful
- No Piracy discussion

Showing 0 to 2 (Total: 2)