Skip to content

[Bug]: Folder and File Sort Order Do Not Match #54036

@kojima-imamura

Description

@kojima-imamura

⚠️ This issue respects the following points: ⚠️

Bug description

There is a discrepancy in the sort order between folders and files. When using version labels for sorting, files appear in the correct order, whereas folders do not.

Image

Steps to reproduce

1.We upload files and folders by adding version labels to their filenames.

Expected behavior

Files and folders are displayed in the same order, based on the current sorting method used for files.

Nextcloud Server version

31

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.4

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Updated from a MINOR version (ex. 32.0.1 to 32.0.2)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "*"
        ],
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "31.0.7.1",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "auto_logout": true,
        "session_lifetime": 3600,
        "knowledgebaseenabled": true,
        "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
        "overwritehost": "***REMOVED SENSITIVE VALUE***",
        "overwriteprotocol": "https",
        "overwritewebroot": "\/",
        "overwritecondaddr": "^172\\.16\\.1\\.1$",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "htaccess.IgnoreFrontController": true,
        "htaccess.RewriteBase": "\/",
        "default_language": "ja",
        "default_locale": "ja",
        "default_phone_region": "JP",
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "ssl",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauth": 1,
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "allow_local_remote_servers": true,
        "enable_previews": true,
        "enabledPreviewProviders": [
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\HEIC",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\Postscript",
            "OC\\Preview\\SVG",
            "OC\\Preview\\TIFF",
            "OC\\Preview\\Font"
        ],
        "quota_preset": "10 GB, 20 GB, 30 GB",
        "theme": "",
        "loglevel": 3,
        "maintenance": false,
        "updater.release.channel": "stable",
        "maintenance_window_start": 1,
        "trashbin_retention_obligation": "auto, 30",
        "files.chunked_upload.max_size": 52428800,
        "localstorage.allowsymlinks": true
    }
}

List of activated Apps

Enabled:
  - admin_audit: 1.21.0
  - bruteforcesettings: 4.0.0
  - cloud_federation_api: 1.14.0
  - dav: 1.33.0
  - federatedfilesharing: 1.21.0
  - files: 2.3.1
  - files_pdfviewer: 4.0.0
  - files_versions: 1.24.0
  - groupfolders: 19.1.2
  - logreader: 4.0.0
  - lookup_server_connector: 1.19.0
  - notify_push: 1.1.0
  - oauth2: 1.19.1
  - password_policy: 3.0.0
  - privacy: 3.0.0
  - profile: 1.0.0
  - provisioning_api: 1.21.0
  - related_resources: 2.0.0
  - serverinfo: 3.0.0
  - settings: 1.14.0
  - theming: 2.6.1
  - theming_customcss: 1.18.0
  - twofactor_backupcodes: 1.20.0
  - updatenotification: 1.21.0
  - viewer: 4.0.0
  - workflowengine: 2.13.0
Disabled:
  - activity: 4.0.0 (installed 2.21.1)
  - app_api: 5.0.2 (installed 4.0.6)
  - circles: 31.0.0 (installed 27.0.1)
  - comments: 1.21.0 (installed 1.17.0)
  - contactsinteraction: 1.12.0 (installed 1.8.0)
  - dashboard: 7.11.0 (installed 7.7.0)
  - encryption: 2.19.0
  - federation: 1.21.0 (installed 1.17.0)
  - files_downloadlimit: 4.0.0 (installed 3.0.0)
  - files_external: 1.23.0
  - files_reminders: 1.4.0 (installed 1.0.0)
  - files_sharing: 1.23.1 (installed 1.22.0)
  - files_trashbin: 1.21.0 (installed 1.19.0)
  - firstrunwizard: 4.0.0 (installed 2.16.0)
  - nextcloud_announcements: 3.0.0 (installed 1.16.0)
  - notifications: 4.0.0 (installed 2.15.0)
  - photos: 4.0.0 (installed 2.5.0)
  - recommendations: 4.0.0 (installed 1.6.0)
  - sharebymail: 1.21.0 (installed 1.20.0)
  - support: 3.0.0 (installed 1.10.0)
  - survey_client: 3.0.0 (installed 1.15.0)
  - suspicious_login: 9.0.1
  - systemtags: 1.21.1 (installed 1.17.0)
  - text: 5.0.0 (installed 3.9.1)
  - twofactor_nextcloud_notification: 5.0.0
  - twofactor_totp: 13.0.0-dev.0
  - user_ldap: 1.22.0
  - user_status: 1.11.0 (installed 1.7.0)
  - weather_status: 1.11.0 (installed 1.7.0)
  - webhook_listeners: 1.2.0 (installed 1.1.0-dev)

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmap31-feedbackbug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions