I am struggling with a listbox and am trying to sort the two alternate states of it. I have attached an example here that shows my situation. The listbox is sorted based on expression, but when I select something, the other (unselected) state doesn't remain in same order but it seems that it is sorted randomly. I want it to remain in the same order as of sort expression. Please advise.