Fixed behaviour of oneway when presented with missing values
[pspp] / src / group.c
index fb86295ba34748adf423db756d43e251ac797a38..e394745e96496d6d9fae5f8f5d8c1ee01d6f21a1 100644 (file)
@@ -29,16 +29,7 @@ compare_group(const struct group_statistics *a,
                 const struct group_statistics *b, 
                 int width)
 {
-  int id_cmp = compare_values(&a->id, &b->id, width);
-
-  if (id_cmp == 0 ) 
-    {
-      int c;
-      c= memcmp(&a->criterion,&b->criterion,sizeof(enum comparison));
-      return c;
-    }
-  else
-    return id_cmp;
+  return compare_values(&a->id, &b->id, width);
 }