Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Sort order of search result

 
post Feb 26 2017, 13:17
Post #1
isavior



Newcomer
**
Group: Members
Posts: 96
Joined: 8-June 11
Level 366 (Godslayer)


Hello, I noticed that the sort order of search result displayed in thumbnails mode is kind of random.

For example, if you search `a:"brother pierrot$" -translated tank`, there're four results sorted by Published date in list mode, be it 1 2 3 4. Now you switch to thumbnails mode, the result will be 1 3 4 2 from left to right.

Is it just me? I'm using firefox 51.0.1
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Feb 26 2017, 13:34
Post #2
Mayriad



SUPER ★ BUSY ★ TIME
*******
Group: Global Mods
Posts: 2,061
Joined: 18-December 10
Level 135 (Lord)


The order will stabilize after one or two pages. Then you will have the correct order.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Feb 26 2017, 14:18
Post #3
hzqr



Savagely Still
********
Group: Gold Star Club
Posts: 4,672
Joined: 13-May 09
Level 462 (Dovahkiin)


I believe the system tries to group galleries in rows based on the height of their cover pages, that's why you see some weird reordering
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Feb 26 2017, 19:34
Post #4
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Gold Star Club
Posts: 10,046
Joined: 24-March 12
Level 500 (Godslayer)


QUOTE(hzqr @ Feb 26 2017, 12:18) *
I believe the system tries to group galleries in rows based on the height of their cover pages, that's why you see some weird reordering
^ this is absolutely correct. The thumbnails are reorganised to optimise screen space.

(we never got the exact algorithm though. Probably it accumulates horizontal ones 'till it has enough to fill a row and display vertical only 'till then. There's likely threshold of how many vertical rows can be added whilst accumulating the horizontal row, since you get mixed rows from time to time (which are not the last row).)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Feb 26 2017, 19:58
Post #5
isavior



Newcomer
**
Group: Members
Posts: 96
Joined: 8-June 11
Level 366 (Godslayer)


That sounds reasonable. But I hope there's a way to turn off this feature, if it's not a bug. I really want the search result to be consistent
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Feb 26 2017, 21:38
Post #6
hzqr



Savagely Still
********
Group: Gold Star Club
Posts: 4,672
Joined: 13-May 09
Level 462 (Dovahkiin)


No way to turn it off as far as I know. Possible solutions:
  • Write a script that queries the API and restores the original ordering based on the response (I'm like 41% sure there's some similar script somewhere you could modify to do this) Disregard this
  • Convince Tenboro to add an option in the settings to disable thumbnail ordering
As a middle-ground solution, the server could be made to use client-side ordering via the order CSS3 property (requires [caniuse.com] flexboxes, currently at 97.5% coverage). You could then disable the sorting client-side by using Stylish or something similar.
But again, this would also need to be implemented by Tenboro so you'd have to convince him again.
Also this

This post has been edited by hzqr: Feb 26 2017, 23:20
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Feb 26 2017, 22:47
Post #7
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Gold Star Club
Posts: 10,046
Joined: 24-March 12
Level 500 (Godslayer)


QUOTE(hzqr @ Feb 26 2017, 19:38) *
queries the API
Don't even need that. In list mode the galleries are ordered by decreasing GIDs, which are in the anchor hrefs.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Feb 26 2017, 23:19
Post #8
hzqr



Savagely Still
********
Group: Gold Star Club
Posts: 4,672
Joined: 13-May 09
Level 462 (Dovahkiin)


Whoops. Yeah, my bad, totally forgot you could use the GID as a progressive ID.
In that case yeah, it's easy peasy: [gist.github.com] https://gist.github.com/anonymous/f15e1d5e0...31befa1b7731b04
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Feb 27 2017, 03:03
Post #9
Simpleton8



Casual Poster
****
Group: Members
Posts: 336
Joined: 2-November 15
Level 264 (Godslayer)


QUOTE(hzqr @ Feb 26 2017, 23:19) *

Whoops. Yeah, my bad, totally forgot you could use the GID as a progressive ID.
In that case yeah, it's easy peasy: [gist.github.com] https://gist.github.com/anonymous/f15e1d5e0...31befa1b7731b04



Thanks, that's much cleaner that what I had. (IMG:[invalid] style_emoticons/default/smile.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 


Lo-Fi Version Time is now: 31st March 2025 - 21:38