My tree views are sorted in ascending order. Anyone know how to do it in descending order?<br><br>Here is what my code does .. any suggestions?<br><br>Private Sub SortTreeCurrentClaim()<br>On Error GoTo Err_SortTreeCurrentClaim<br>' *******************<br>' Local Declaration<br>' *******************<br> Dim nodTemp As Node 'the new claim node<br> Dim cnodTemp As Nodes 'the treClaimCurrent.nodes collection<br> Static intNodIndex As Integer 'the index of the new claim node quicker than a for each<br> <br>' ***************<br>' Local Constants<br>' ***************<br> Const PROC_NAME = "SortTreeCurrentClaim"<br>' *********<br>' Body<br>' ********<br> objErr.TraceIn (MODULE_NAME & " -" & PROC_NAME)<br><br> If intNodIndex = 0 Then intNodIndex = 2 <br><br>' at the beginning the new claim index is always 2 because it's in the initClaimTree<br><br> Set cnodTemp = treClaimCurrent.Nodes<br> cnodTemp(1).Sorted = True 'sort the tree<br> cnodTemp.Remove (intNodIndex) 'remove the nod<br> Set nodTemp = cnodTemp.Add(1, tvwChild) 'put the nod at the beginning<br> nodTemp.text = strLoadString(1313) '"New Claim"<br> nodTemp.Tag = "Claim -1"<br> nodTemp.Image = "leaf"<br> intNodIndex = nodTemp.Index<br> <br>Exit_SortTreeCurrentClaim:<br> objErr.TraceOut<br> Exit Sub<br> <br>Err_SortTreeCurrentClaim:<br> Call objErr.DisplayErrMessage(itbdll.Language, True, _<br> vbInformation, gstrTitle & MODULE_NAME & "-" & PROC_NAME)<br> Resume Exit_SortTreeCurrentClaim<br>End Sub