userstyles-world / userstyles.world

⭐ Website to browse and share UserCSS userstyles. A modern replacement for UserStyles.org made by the userstyles community.
https://userstyles.world
GNU Affero General Public License v3.0
324 stars 15 forks source link

Incorrect Sorting #204

Closed cyfung1031 closed 1 year ago

cyfung1031 commented 1 year ago

@vednoc malfunction of sorting in UserStyles.world.

It happens for Explore and Search

Take the following as one of the examples.

https://userstyles.world/search?q=youtube&sort=mostinstalls

The first page will show from YouTube Player Debloater (4165 installs) to Youtube (12 installs)

The second page will show from Old Youtube Layout In 2021-2022 (35.2K installs) to Youtube Minimize Navbar (4 installs)

The third page will show from YouTube Square Avatars (6004 installs) to youtube - no video pane (for music) (7 installs)

... and so on

Obviously, the sorting is completely broken. The first page first item has just 4165 installs, it is smaller than second page (35.2k) first item and third page first item (6004)

This also happens in other sorting order. I guess it is just sorting the results from the page with "default sorting", not the full sorting from the entire result list.

vednoc commented 1 year ago

We've known about this bug for a while now, and @Gusted started working on a fix for it. There's another way to go about it, but it requires fixing #112 first, then switching from Bleve to SQLite for our search engine. It's next on my list of things to fix (after my current task of rewriting the UI, and side-tasks that @a0eoc gives me). 😅

vednoc commented 1 year ago

I prioritized this issue and it's fixed now—we switched, at least temporarily, to SQLite. If you run into more issues, please let us know.