From f5bbaf8718496690ae70d6fbb2ffa28286b271dc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Tue, 29 Oct 2013 20:22:49 +0100
Subject: Fix unit test on Mavericks

Change-Id: I11101d660bb0debe85069eb3f2ed30987fa0d5ec

diff --git a/Swiften/Network/DomainNameServiceQuery.cpp b/Swiften/Network/DomainNameServiceQuery.cpp
index 6ce1d97..5e87295 100644
--- a/Swiften/Network/DomainNameServiceQuery.cpp
+++ b/Swiften/Network/DomainNameServiceQuery.cpp
@@ -35,7 +35,7 @@ DomainNameServiceQuery::~DomainNameServiceQuery() {
 
 void DomainNameServiceQuery::sortResults(std::vector<DomainNameServiceQuery::Result>& queries, RandomGenerator& generator) {
 	ResultPriorityComparator comparator;
-	std::sort(queries.begin(), queries.end(), comparator);
+	std::stable_sort(queries.begin(), queries.end(), comparator);
 
 	std::vector<DomainNameServiceQuery::Result>::iterator i = queries.begin();
 	while (i != queries.end()) {
-- 
cgit v0.10.2-6-g49f6