diff options
author | vdrfan <vdrfan-nospam-@xbmc.org> | 2011-11-01 12:02:32 +0100 |
---|---|---|
committer | vdrfan <vdrfan-nospam-@xbmc.org> | 2011-11-01 12:02:32 +0100 |
commit | 08a594119702f2f5abfd538dd0d667e87710b8ee (patch) | |
tree | 6e3ef47e848676211548a394d7de49b0042b0521 | |
parent | 75db4a8b8e6b1cd78ae70f20757e3fca37f9e361 (diff) |
changed: use std::stable_sort when sorting the scraper results in order to guarantee that the order between equal elements are maintained (thanks spiff)
-rw-r--r-- | xbmc/addons/Scraper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/addons/Scraper.cpp b/xbmc/addons/Scraper.cpp index a9c22f357d..7dce8e966d 100644 --- a/xbmc/addons/Scraper.cpp +++ b/xbmc/addons/Scraper.cpp @@ -578,7 +578,7 @@ std::vector<CScraperUrl> CScraper::FindMovie(XFILE::CFileCurl &fcurl, const CStd throw CScraperError(); // scraper aborted if (fSort) - std::sort(vcscurl.begin(), vcscurl.end(), RelevanceSortFunction); + std::stable_sort(vcscurl.begin(), vcscurl.end(), RelevanceSortFunction); return vcscurl; } |