Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'map/framework.cpp')
-rw-r--r--map/framework.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/map/framework.cpp b/map/framework.cpp
index b813cc9c5e..0457d66bf4 100644
--- a/map/framework.cpp
+++ b/map/framework.cpp
@@ -3507,6 +3507,11 @@ void Framework::GetUGC(FeatureID const & id, ugc::Api::UGCCallback const & callb
{
ugc::UGC filteredUGC = ugc;
filteredUGC.m_reviews = FilterUGCReviews(ugc.m_reviews);
+ std::sort(filteredUGC.m_reviews.begin(), filteredUGC.m_reviews.end(),
+ [](ugc::Review const & r1, ugc::Review const & r2)
+ {
+ return r1.m_time > r2.m_time;
+ });
callback(filteredUGC, update);
});
}