Reported by: Eric E Graig
 
 Changes from 1.2.0 to 1.3.0:
 
+ * A bug where the Data|Select Cases|Random Sample menu would generate
+   invalid syntax has been fixed.
+
  * FREQUENCIES will emit a warning if one or more weight values are missing.
 
  * Plain text output is no longer divided into pages, since it is now
 
                           ranvar);
 
          ds_put_c_format (&dss,
-                          "SORT BY %s, %s.\n",
+                          "SORT CASES BY %s, %s.\n",
                           filter, ranvar);
 
          ds_put_cstr (&dss, "EXECUTE.\n");
 
 
          ds_put_c_format (&dss,
-                          "SORT BY %s.\n",
+                          "SORT CASES BY %s.\n",
                           key);
 
          ds_put_c_format (&dss,