MSFlexGrid is an object in vb6 to show data that we set. Data that show actually can sort if we click the every column in the MSFlexGrid Object. MSFlextGrid have an function for sort the data according the column that we click. it can ascending or descending. the function is flexSortStringAscending, flexSortGenericAscending, flexSortNumericAscending and flexSortStringDescending, flexSortGenericDescending, flexSortNumericDescending.
how to use:
MSFlexGrid.sort = flexSortNumericDescending (for descending)
MSFlexGrid.sort = flexSortGenericAscending (for ascending)