# Sorting doesn't working

**URL:** <https://help.nextcloud.com/t/sorting-doesnt-working/190105>\
**Category:** ℹ️ Support\
**Tags:** github\_issue\_exists, nc28, crossposting\
**Created:** [May 1, 2024, 6:52pm UTC](https://help.nextcloud.com/t/sorting-doesnt-working/190105 "2024-05-01T18:52:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michl16](https://help.nextcloud.com/letter_avatar/michl16/32/6_449c533f586939b6e5f246632a46421f.png) [@Michl16](https://help.nextcloud.com/u/Michl16)\
**Post date:** [May 1, 2024, 6:52pm UTC](https://help.nextcloud.com/t/sorting-doesnt-working/190105/1 "2024-05-01T18:52:30Z")

</div>

Hello

I have a problem with sorting. Upgrading to the current version 28.0.5 does not change this.

Here to screenshots:

 ![ascending](https://help.nextcloud.com/uploads/default/original/3X/5/c/5cf3c8c58dfaddb0c4cfd128fec621af9ac9647e.png)

 ![descending](https://help.nextcloud.com/uploads/default/original/3X/0/4/04621c9db9a3bc048cd079458235bc86eb194ef5.png)

What could it be?  
Thanks

---

<div class="post-metadata">

**Author:** ![Michl16](https://help.nextcloud.com/letter_avatar/michl16/32/6_449c533f586939b6e5f246632a46421f.png) [@Michl16](https://help.nextcloud.com/u/Michl16)\
**Post date:** [May 2, 2024, 9:53pm UTC](https://help.nextcloud.com/t/sorting-doesnt-working/190105/2 "2024-05-02T21:53:34Z")

</div>

I have observed that longer names have higher priority than short strings!? Doesn’t NC use a simple string compare?

---

<div class="post-metadata">

**Author:** ![Michl16](https://help.nextcloud.com/letter_avatar/michl16/32/6_449c533f586939b6e5f246632a46421f.png) [@Michl16](https://help.nextcloud.com/u/Michl16)\
**Post date:** [May 5, 2024, 6:06pm UTC](https://help.nextcloud.com/t/sorting-doesnt-working/190105/3 "2024-05-05T18:06:17Z")

</div>

In the Android App the sorting is correct. So it’s a bug in web page view.

---

<div class="post-metadata">

**Author:** ![tflidd](https://help.nextcloud.com/letter_avatar/tflidd/32/6_449c533f586939b6e5f246632a46421f.png) [@tflidd](https://help.nextcloud.com/u/tflidd)\
**Post date:** [May 10, 2024, 10:24am UTC](https://help.nextcloud.com/t/sorting-doesnt-working/190105/4 "2024-05-10T10:24:14Z")

</div>

There is a bug report for sorting issues starrting with Nextcloud 28:

> <https://github.com/nextcloud/server/issues/42826>
>
> \### ⚠️ This issue respects the following points: ⚠️
> 
> \- \[X\] This is a \*\*bug\*\*, no…t a question or a configuration/webserver/proxy issue.
> \- \[X\] This issue is \*\*not\*\* already reported on \[Github\](https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3Abug) OR \[Nextcloud Community Forum\](https://help.nextcloud.com/) \_(I've searched it)\_.
> \- \[X\] Nextcloud Server \*\*is\*\* up to date. See \[Maintenance and Release Schedule\](https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule) for supported versions.
> \- \[X\] I agree to follow Nextcloud's \[Code of Conduct\](https://nextcloud.com/contribute/code-of-conduct/).
> 
> \### Bug description
> 
> File sorting based on numbers with points ( YYYY.MM.DD ) has changed in 28.0.1. No problem is 27.1.5
> For example, with 3 folders named 2023.01.08, 2023.04.09, 2023.10.12, if I to do descending sort order or ascending, 2023.01.08 will be in the middle, not at the beginning or the end.
> If you replace points with hyphens (2023-01-08, 2023-04-09, 2023-10-12), 2023-01-08 will be at beginning or at the end.
> 
> \### Steps to reproduce
> 
> 1.Create 3 folder named 2023.01.08, 2023.04.09, 2023.10.12
> 2.Clich on file sort by name
> 3.
> 
> 
> \### Expected behavior
> 
> NOK : Descending sort order or ascending, 2023.01.08 will be in the middle, not at the beginning or the end.
> OK : Replace points with hyphens (2023-01-08, 2023-04-09, 2023-10-12), 2023-01-08 will be at beginning or at the end.
> 
> \### Installation method
> 
> Community Manual installation with Archive
> 
> \### Nextcloud Server version
> 
> 28
> 
> \### Operating system
> 
> Debian/Ubuntu
> 
> \### PHP engine version
> 
> PHP 8.2
> 
> \### Web server
> 
> Apache (supported)
> 
> \### Database engine version
> 
> MariaDB
> 
> \### Is this bug present after an update or on a fresh install?
> 
> Upgraded to a MAJOR version (ex. 22 to 23)
> 
> \### Are you using the Nextcloud Server Encryption module?
> 
> None
> 
> \### What user-backends are you using?
> 
> \- \[X\] Default user-backend \_(database)\_
> \- \[X\] LDAP/ Active Directory
> \- \[\] SSO - SAML
> \- \[\] Other
> 
> \### Configuration report
> 
> \`\`\`shell
> {
> "system": {
> "instanceid": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "passwordsalt": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "secret": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "trusted\_domains": \[
> "192.168.XXX.XXX",
> \],
> "datadirectory": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "dbtype": "mysql",
> "version": "28.0.1.1",
> "overwrite.cli.url": "https:\\/\\/XXX.XXX.XXX.fr\\/nextcloud",
> "overwritehost": "XXX.XXX.XXX.fr",
> "overwriteprotocol": "https",
> "dbname": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "dbhost": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "dbport": "",
> "dbtableprefix": "oc\_",
> "default\_phone\_region": "FR",
> "mysql.utf8mb4": true,
> "dbuser": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "dbpassword": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "installed": true,
> "memcache.distributed": "\\\\OC\\\\Memcache\\\\Redis",
> "memcache.local": "\\\\OC\\\\Memcache\\\\Redis",
> "memcache.locking": "\\\\OC\\\\Memcache\\\\Redis",
> "redis": {
> "host": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "port": 6379
> },
> "maintenance": false,
> "theme": "",
> "loglevel": 2,
> "mail\_domain": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "mail\_from\_address": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "mail\_smtpmode": "smtp",
> "mail\_smtphost": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "mail\_smtpport": "25",
> "mail\_sendmailmode": "smtp",
> "default\_language": "fr",
> "default\_locale": "fr\_FR",
> "skeletondirectory": "",
> "trusted\_proxies": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "ldapProviderFactory": "OCA\\\\User\_LDAP\\\\LDAPProviderFactory",
> "user\_email\_visible": "true"
> }
> }
> \`\`\`
> 
> 
> \### List of activated Apps
> 
> \`\`\`shell
> Enabled:
> - activity: 2.20.0
> - circles: 28.0.0-dev
> - cloud\_federation\_api: 1.11.0
> - dav: 1.29.1
> - federatedfilesharing: 1.18.0
> - federation: 1.18.0
> - files: 2.0.0
> - files\_accesscontrol: 1.18.0
> - files\_pdfviewer: 2.9.0
> - files\_reminders: 1.1.0
> - files\_sharing: 1.20.0
> - files\_trashbin: 1.18.0
> - files\_versions: 1.21.0
> - groupfolders: 16.0.2
> - logreader: 2.13.0
> - lookup\_server\_connector: 1.16.0
> - notifications: 2.16.0
> - oauth2: 1.16.3
> - password\_policy: 1.18.0
> - privacy: 1.12.0
> - provisioning\_api: 1.18.0
> - quota\_warning: 1.18.0
> - recommendations: 2.0.0
> - related\_resources: 1.3.0
> - serverinfo: 1.18.0
> - settings: 1.10.1
> - sharebymail: 1.18.0
> - systemtags: 1.18.0
> - theming: 2.3.0
> - twofactor\_backupcodes: 1.17.0
> - updatenotification: 1.18.0
> - user\_ldap: 1.19.0
> - viewer: 2.2.0
> - workflowengine: 2.10.0
> Disabled:
> - admin\_audit: 1.18.0
> - bruteforcesettings: 2.8.0 (installed 2.4.0)
> - comments: 1.18.0 (installed 1.10.0)
> - contactsinteraction: 1.9.0 (installed 1.1.0)
> - dashboard: 7.8.0 (installed 7.0.0)
> - encryption: 2.16.0
> - files\_antivirus: 5.4.0 (installed 5.4.0)
> - files\_automatedtagging: 1.18.0 (installed 1.18.0)
> - files\_downloadactivity: 1.16.0 (installed 1.16.0)
> - files\_external: 1.20.0
> - files\_retention: 1.16.0 (installed 1.16.0)
> - files\_rightclick: 0.15.1 (installed 1.6.0)
> - files\_trackdownloads: 1.11.0 (installed 1.11.0)
> - firstrunwizard: 2.17.0 (installed 2.9.0)
> - nextcloud\_announcements: 1.17.0 (installed 1.9.0)
> - photos: 2.4.0 (installed 1.1.0)
> - ransomware\_protection: 1.14.0 (installed 1.14.0)
> - sharelisting: 1.2.0 (installed 1.2.0)
> - side\_menu: 3.11.2 (installed 3.11.2)
> - support: 1.11.0 (installed 1.3.0)
> - survey\_client: 1.16.0 (installed 1.8.0)
> - suspicious\_login: 6.0.0
> - text: 3.9.1 (installed 3.1.0)
> - twofactor\_totp: 10.0.0-beta.2
> - user\_status: 1.8.1 (installed 1.0.1)
> - weather\_status: 1.8.0 (installed 1.0.0)
> \`\`\`
> 
> 
> \### Nextcloud Signing status
> 
> \`\`\`shell
> No errors have been found.
> \`\`\`
> 
> 
> \### Nextcloud Logs
> 
> \_No response\_
> 
> \### Additional info
> 
> \_No response\_

> [@Michl16](#):
>
> So it’s a bug in web page view.

Yes, it seems to be the web frontend.

---

<div class="post-metadata">

**Author:** ![JimmyKater](https://help.nextcloud.com/user_avatar/help.nextcloud.com/jimmykater/32/4850_2.png) [@JimmyKater](https://help.nextcloud.com/u/JimmyKater)\
**Post date:** [May 18, 2024, 10:24am UTC](https://help.nextcloud.com/t/sorting-doesnt-working/190105/5 "2024-05-18T10:24:43Z")

</div>

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.
