Sorting Numbering in BAQ

Hi All,
Maybe for the expertise here can solve this by just in minutes but I really need your idea how to handle this part.

I have a list of number integer but I’m having some sorting in my BAQ and it appear as following:
image

Does any know how to make is as sorted display as 1,2,3,4,5,instead of 1,10,11,12,13…

as SQL i understand can be using Order By Key2 + 0 ASC, but I dont know how to formula in BAQ.

Thanks in advance.

I’m no expert, and I only learnt it this week,… first step is to create a calculated field, field type int, format >>>99 in the expression box type in convert(int, UD02.Key2), and then sort by that field

it only works if what is in key02 is a number

image

image

3 Likes

Ah yes, this is what I want, thanks Barker…

No problems, glad to be of assistance