I have written a function that reads a specified table from an msi file. The function uses sql syntax to query the table and uses the "Order By" keyword to sort the results.
Being Microsoft, things are sorted differently. The columns that are integer based sort as expected but the string columns don't sort. After wasting time trying different things I came across some info on MS site
WTF is the point in that I don't know but this leads me to my question.
If the column is an integer I can let SQL sort it. If not I can sort the array by getting the column index of the specified column. Is there a way to check a string to see if it is a number or, (before StringIsInt is mentioned) a number in version format such as 1.0.0.0?.
I am thinking of letting _ArraySort do all the sorting once I establish which column in the array is the one to sort but was looking for other solutions.
I have attached the files with code and an msi.
Thanks
Being Microsoft, things are sorted differently. The columns that are integer based sort as expected but the string columns don't sort. After wasting time trying different things I came across some info on MS site
Quote
The ORDER BY clause is optional and causes an initial delay during sorting. Ordering by strings will group identical strings together, but it will not alphabetize the strings.
WTF is the point in that I don't know but this leads me to my question.
If the column is an integer I can let SQL sort it. If not I can sort the array by getting the column index of the specified column. Is there a way to check a string to see if it is a number or, (before StringIsInt is mentioned) a number in version format such as 1.0.0.0?.
I am thinking of letting _ArraySort do all the sorting once I establish which column in the array is the one to sort but was looking for other solutions.
I have attached the files with code and an msi.
Thanks