Sorting alphabetically - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: Sorting alphabetically (/Thread-Sorting-alphabetically) |
Sorting alphabetically - rachnamalik - 11-06-2014 I have a web table which has a column 'Member Name' and I would like to sort the table data in Asc and Desc when I click the column name. How can I sort the data by member name, It would be great if someone can give inputs here. Thanks RE: Sorting alphabetically - supputuri - 11-08-2014 Hi there are 2 ways you can do the sorting - before sorting store all the values into array and pass the array to either of the functions. Code: Function SortAnArrary(aArrary,strSortingOrder) Second Way Code: Function SortAnArray(aArray,strSortOrder) Let me know if you need any more information on this. RE: Sorting alphabetically - rachnamalik - 11-08-2014 Hi There, Thanks for the detailed explanation. I have never used array either so how do we store the values in the array, wanted to know that too. Thanks Rachna |