void SearchMenuController::OnSearchQueryResponseReceivedMessage(const Search::SearchQueryResponseReceivedMessage& message)
 {
     m_searchMenuView.CollapseAll();
     m_searchMenuView.SetSearchInProgress(false);
     
     m_searchMenuView.SetSearchResultCount(static_cast<int>(message.GetResults().size()));
 }
            void SearchResultSectionController::OnSearchQueryResponseReceivedMessage(const Search::SearchQueryResponseReceivedMessage& message)
            {
                for(int i = 0; i < m_lastAddedResults.size(); ++i)
                {
                    const Search::SdkModel::SearchResultModel& model(m_lastAddedResults[i]);
                    m_menuOptions.RemoveItem(model.GetIdentifier());
                }
                
                m_lastAddedResults = message.GetResults();
                
//                const std::vector<Search::SdkModel::SearchResultModel>& unorderedResults = message.GetResults();
                
                OrderWrapper orderWrapper(m_order);
                std::stable_sort(m_lastAddedResults.begin(), m_lastAddedResults.end(), orderWrapper);
                
                for(int i = 0; i < m_lastAddedResults.size(); ++i)
                {
                    const Search::SdkModel::SearchResultModel& model(m_lastAddedResults[i]);
                    m_menuOptions.AddItem(model.GetIdentifier(),
                                          model.GetTitle(),
                                          model.GetSubtitle(),
                                          model.GetCategory(),
                                          Eegeo_NEW(SearchResultItemModel)(model.GetTitle(),
                                                                           model.GetLocation().ToECEF(),
                                                                           model.IsInterior(),
                                                                           model.GetBuildingId(),
                                                                           model.GetFloor(),
                                                                           m_searchMenuViewModel,
                                                                           m_messageBus,
                                                                           m_menuReaction));
                    
                }
            }