Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(#6308): sort share accounts in nav panel by STOCKNAME #6309

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions src/mmframe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,7 @@ void mmGUIFrame::DoRecreateNavTreeControl(bool home_page)
m_nav_tree_ctrl->SetItemData(tacct, new mmTreeItemData(mmTreeItemData::STOCK, account.ACCOUNTID));
// find all the accounts associated with this stock portfolio
Model_Stock::Data_Set stock_account_list = Model_Stock::instance().find(Model_Stock::HELDAT(account.ACCOUNTID));
std::sort(stock_account_list.begin(), stock_account_list.end(), SorterBySTOCKNAME());
// Put the names of the Stock_entry names as children of the stock account.
for (const auto& stock_entry : stock_account_list)
{
Expand Down