That’s one year I completed my website, but I’ve just noticed that random sorting doesn’t work as expected. Let me explain :
After having created my collection, I inserted it into a page
I ask thesorting order to be “Random, shuffle”
In the dashboard, every time I reload the page, the random feature works very well and the sort is different everytime
When I go to my published website anyway, the sorting order is well randomized, but it stays always the same at every reload. So we always see the same items at first, which is not what I expected.
What to expect : at every page reload, the sorting order is different.
Any news on this bug ?
I noticed that the webflow.io part of the website had a different random sorting order than the published site, but every refresh shows the same order.
Is there anyone that can do something on this ?
Thanks
@Carlos_Ruiz_Del_Vizo Thanks for your answer but I tried on two other browsers that I never use and this is exactly the same.
Can you try it yourself and see what happens ? You just need to do 3 or 4 reload of this page and see if the order changes. Thanks.
Tried to remove random, sort with something else, publish, add random sorting, republish, but nothing changed apart from the fact that the sorting is in a different random order…
Due to the way sites are produced and stored, and to reduce unnecessary load, the sites are generated every 12 hours I believe - so when it’s generated and cached you will see a new random sort.
If you need to have random on each page-load then you’ll have to implement a custom JS solution.
What’s the interest of a random sorting if it is always the same ?..
The fact is : it’s working as expected inside the CMS, so why not on published site ?
Another fact is : the sorting is changing at every new publish.
I certainly understand where you’re coming from, but one of the great benefits of Webflow is the speed at which the sites can load - this is all possible because the site is static. When you introduce features like dynamic on-demand randomisation and sorting then it’s going to slow things down because there will usually be some sort of server-side tasks to complete the view.
So the solution they’ve provided is a good balance of functionality while keeping sites fast.
Ok, so it should be explained that the random sorting will only work at every publishing. And it is not. I’ve sent this bug report through the dashboard and received no answer.
Not even this kind of explanation.
So I’m not sure if it is really a feature to change the random sort only at every publish…
Moreover, there is a post on this forum where the webflow team itself shares a script to do this exact same thing. And later in the post, they share the random sorting feature to be live, so I guess this should have been the same thing…
Anyway, the site hasn’t changed since the last 24 hours, so I guess it is not a matter of cache.