Hi @Gorilla_8 ,
You used the words both Filter and Sort in your post - I responded to the assumption of Filter, however from your code, you are wanting to Sort.
You are using a variable varFilterColumnName - I assume this is a sort order in the Items property of the gallery.
If this is all true, then your code should do the job.
One question - ComboBox drpFilter - the output of this would normally be drpFilter.Selected.xxxx (with xxxx being Value, Result or a field name depending on the Items property).
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.