Skip to content

Dropdown values no longer in ascending order whilst searching #14190

@JonKaric

Description

@JonKaric

Bug description

In v5 and below, numbered dropdown/select fieldtype values were sorted in ascending order during a search. They now seem to appear in random order.

v6:
Image
< v6:
Image

How to reproduce

-
  handle: numbers
  field:
    options:
      -
        key: 1980
        value: '1980'
      -
        key: 1991
        value: '1991'
      -
        key: 1992
        value: '1992'
      -
        key: 1993
        value: '1993'
      -
        key: 1994
        value: '1994'
      -
        key: 1995
        value: '1995'
      -
        key: 1996
        value: '1996'
      -
        key: 1998
        value: '1998'
      -
        key: 1999
        value: '1999'
      -
        key: 2000
        value: '2000'
    type: select
    display: Numbers

Logs

Environment

Environment
Application Name: Statamic
Laravel Version: 12.53.0
PHP Version: 8.5.0
Composer Version: 2.9.2
Environment: local
Debug Mode: ENABLED
Maintenance Mode: OFF
Timezone: UTC
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: log
Queue: sync
Session: file

Storage
public/storage: NOT LINKED

Livewire
Livewire: v4.2.0

Statamic
Addons: 2
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.4.1 PRO

Statamic Addons
marcorieser/statamic-livewire: 5.2.1
statamic/seo-pro: 7.1.1

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions