Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Custom Sort Order by Varchar Column

Hi All,

I have a data  in a column with the below format .I need to sort by column.Can anyone help.

Column

1

1.1

1.1.1

1.1.2

1.1.2.7

1.1.2.8

1.1.2.9

1.1.3

1.1.3.3

1.1.3.4

1.1.3.8

1.1.3.9

1.1.3.10

2 Replies
alexandros17
Partner - Champion III
Partner - Champion III

this is yet the natural sorting for the field, describe better your scenario

Not applicable
Author

You can use subfields:

sort by this expression: Subfield(column,'.',3)  which will return:

blank

blank

1

2

2

2

2

3

3

3

3

3

3

Or sort by: Subfield(column,'.',4) to sort on your last "column"