// Sort the list based on the column clicked. // If the same column is clicked twice, sort descending. If column <> ii_SortCol Then igrs_Sort = ascending! ii_SortCol = column Else If igrs_Sort = ascending! Then igrs_Sort = descending! Else igrs_Sort = ascending! End if End if // Since all columns are strings, numeric values will not sort // properly. So call userdefined sort for Quantity and Unit Price. // This will execute the "sort" event for each item comparison. If column <5 Then This.Sort(igrs_Sort, column) Else This.Sort(userdefinedsort!, column) End If