0

我的应用程序中有一个 java 表,它有 1 列和 5 行。行的内容如下。这些内容按降序排列

172-18-zfs   
MKTLAB  
NFSVOL                                                                
datastore1                       
datastore1(1)  

单击列标题后,它会按升序排序,顺序是这样的

datastore1(1)  
datastore1   
NFSVOL  
MKTLAB  
172-18-zfs

通过QTP我想检查这个排序是否正确。我使用了字典的 sort() 方法,但它没有给出预期的结果。它只是按照字母顺序排序。
在预期的排序顺序中,第一优先级应该是小写字母,然后是大写字母,然后是数字。

4

1 回答 1

0

If the built-in sort routine of Scripting.Dictionary does not match the sort routine expected by your application, you may have to create your own that exhibits the logic you want. Research any VBScript-based sorting option and you may find one that matches or something that will work for you. A quick search revealed this topic with several options.

于 2014-08-18T21:58:54.827 回答