I'm trying to figure out how to sort a secondary data connection to a sharepoint list. I'm aware that the sort on the view dictates the sort in the connection but I've read in these forums it can be changed using code. I think I have to use addsort but am not sure on how it works. I've tried this but it's not working.
The node selected in the expression is a dropdown box filled by a secondary data source
Dim expr As XPathExpression
expr = thisXDocument.DOM.selectSingleNode("//my:myFields/my:ProcessInfo/my:FilterMaterial")
expr.AddSort("FilterMaterial", XmlSortOrder.Ascending, XmlCaseOrder.None, "", XmlDataType.Text)
MsgBox("test", MsgBoxStyle.Critical)
Any help in the right direction would be greatly appreciated. Thanks!