msi: Sort SelectionTree items by their Display value.

This commit is contained in:
James Hawkins 2006-07-18 11:40:44 -07:00 committed by Alexandre Julliard
parent 045d817f4b
commit 2396e2a59f
2 changed files with 3 additions and 2 deletions

View File

@ -1345,7 +1345,8 @@ static UINT ACTION_CostInitialize(MSIPACKAGE *package)
UINT rc;
static const WCHAR Query_all[] =
{'S','E','L','E','C','T',' ','*',' ', 'F','R','O','M',' ',
'`','F','e','a','t','u','r','e','`',0};
'`','F','e','a','t','u','r','e','`',' ','O','R','D','E','R',
' ','B','Y',' ','`','D','i','s','p','l','a','y','`',0};
static const WCHAR szCosting[] =
{'C','o','s','t','i','n','g','C','o','m','p','l','e','t','e',0 };
static const WCHAR szZero[] = { '0', 0 };

View File

@ -1610,7 +1610,7 @@ msi_seltree_add_child_features( MSIPACKAGE *package, HWND hwnd,
memset( &tvis, 0, sizeof tvis );
tvis.hParent = hParent;
tvis.hInsertAfter = TVI_SORT;
tvis.hInsertAfter = TVI_LAST;
tvis.u.item.mask = TVIF_TEXT | TVIF_PARAM;
tvis.u.item.pszText = feature->Title;
tvis.u.item.lParam = (LPARAM) feature;