Example you have below codes
if user selects From: 9C3B and To: L01RF then below should be selected and appear in below order in the Listbox
I am sorry but that example makes no sense at all to me. You probably need to provide a lot more information and details for anyone to be able to give you guidance on this. If you provide a sample QVW it is also more likely, that someone can give more detailed advice.
I do not understand the data in your example. It is clearly codes, but what does it represent? Physical stores? Can you describe why the selection From: 9C3B and To: L01RF returns the result you expect? Are these stores that are geographically located between the selections, or what is the relation that leads this to be the answer?