Number of worker-threads controlled by main config
[pazpar2-moved-to-github.git] / src / reclists.c
index bbb293c..a4b1ac0 100644 (file)
@@ -1,5 +1,5 @@
 /* This file is part of Pazpar2.
-   Copyright (C) 2006-2009 Index Data
+   Copyright (C) 2006-2010 Index Data
 
 Pazpar2 is free software; you can redistribute it and/or modify it under
 the terms of the GNU General Public License as published by the Free
@@ -165,6 +165,8 @@ static int reclist_cmp(const void *p1, const void *p2)
             res = 0;
         }
     }
+    if (res == 0)
+        res = strcmp(r1->recid, r2->recid);
     return res;
 }