-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Page order by header sorts integers different on webserver than on localhost #3167
Comments
Looks like the first ordering is using natural ordering and the second is using character-by-character ordering. Look at the last method in |
Localhost uses: Server uses (Collator::SORT_STRING): It seems I guess there is something wrong with the implementation:
|
@NicoHood Try setting collator up: |
That works! |
Let me fix that. |
Thanks, nice! And the other options are not affected? To me it looks like numeric sorting is now always applied. I have no knowledge about that at all, so I might be wrong. Also I am wondering why the full path (see post above) is used for sorting, is that correct? |
It is what is applied to normal search, too. Basically, it just sorts numbers as 1 < 10 < 100 < 1000, otherwise it works like normal sort. |
Guess this can be closed then |
I have multiple pages with headers like
footer: 10
. I am generating an ordered list of this pages as footer.On localhost:
On Server:
It looks like the server is sorting the integers maybe via string compare rather than normal int compare. Both run php 7.4, but the server uses apache, while on localhost I am running via
php -S 0.0.0.0:8000 system/router.php
.Do you have any hint why this could happen?
The text was updated successfully, but these errors were encountered: