Index: trunk/ippTools/src/detselect.c
===================================================================
--- trunk/ippTools/src/detselect.c	(revision 26981)
+++ trunk/ippTools/src/detselect.c	(revision 31058)
@@ -152,5 +152,5 @@
     // unless explicitly specified by the user, list all possible matches
     if (!unlimit) {
-        psStringAppend(&query, " ORDER BY registered DESC LIMIT 1");
+        psStringAppend(&query, " ORDER BY registered DESC, iteration DESC LIMIT 1");
     }
 
