VirtualBox

Changeset 65425 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 24, 2017 3:01:05 PM (8 years ago)
Author:
vboxsync
Message:

testbox.py: Name sorting tweak.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/core/testbox.py

    r65423 r65425  
    690690    kdSortColumnMap                 = {
    691691        0:                               'TestBoxesWithStrings.sName',
    692         kiSortColumn_sName:              'TestBoxesWithStrings.sName',
    693         -kiSortColumn_sName:             'TestBoxesWithStrings.sName DESC',
     692        kiSortColumn_sName:              "regexp_replace(TestBoxesWithStrings.sName,'[0-9]*','', 'g'), "\
     693                                         "regexp_replace(CONCAT(TestBoxesWithStrings.sName,'0'),'[^0-9]*','', 'g')::int",
     694        -kiSortColumn_sName:             "regexp_replace(TestBoxesWithStrings.sName,'[0-9]*','', 'g') DESC, "\
     695                                         "regexp_replace(CONCAT(TestBoxesWithStrings.sName,'0'),'[^0-9]*','', 'g')::int DESC",
    694696        kiSortColumn_sOs:                'TestBoxesWithStrings.sOs',
    695697        -kiSortColumn_sOs:               'TestBoxesWithStrings.sOs DESC',
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette