Umbraco.Forms.Issues icon indicating copy to clipboard operation
Umbraco.Forms.Issues copied to clipboard

Prevalue sources alphabetical sort is sorting on value field not caption

Open lesley-w opened this issue 4 months ago • 0 comments

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)

lesley-w avatar Aug 26 '25 22:08 lesley-w