Skip to content

Prevalue sources alphabetical sort is sorting on value field not caption #1438

@lesley-w

Description

@lesley-w

Which Umbraco Forms version are you using? (Please write the exact version, example: 13.4.0)

13.5.0

Which Umbraco version are you using? (Please write the exact version, example: 13.5.2)

13.9.3

Issue summary

Prevalue source based on Umbraco Documents, with value field set to Id and Order by set to Alphabetical is sorting by the value field not the caption field.
This means the list is not displayed in alphabetical order

Image

The only way to get it to order by caption is to set the value field to Name, but then you cannot access the node id value.

Specifics

No response

Steps to reproduce

Create a prevalue source based on Umbraco Documents, with value field set to Id and Order by set to Alphabetical.

Add prevalue source to form as dropdown list - list is not displayed in alphabetical order, unless you set value field to Name, but then you don't have access to the id value

Expected result / actual result

Expected list to display in alphabetical order

Actual : List values (id) were sorted in alphabetical order not the actual display value (name)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions