Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sort by expression and then by text

Hi community, 

I have list boxes that load expressions to exclude certain fields.  To get ones that are within the current selections at the top (not grayed out ones) I have to sort by expression, and then I use the expression that I used to create the list box.  This puts the current allowable expressions at the top of the list box. 

The issue is that those are not alphabetically ordered.  How would I order those alphabetically.  I've tryed to have two sorts at the same time with expression and text A>Z , but that didn't work.

4 Replies
pover
Partner - Master
Partner - Master

This might not work in your case, but the list boxes might be ordered by "load order" by default, so you might be able to get it ordered alphabetically if you sort the table alphabetically from the script the first time you load it.

Karl

Not applicable
Author

Do you know how to sort alphabetically in the script Karl?

Not applicable
Author

You need to do a Resident Load with an Order By clause

pover
Partner - Master
Partner - Master

It has to be sorted from its first load of the table in QlikView or in the QVD file if you are using a QVD file.

From example,

Load *

SQL Select *

From x.x

Order by Field

Karl