Index: trunk/ippdb/src/ippdb.h
===================================================================
--- trunk/ippdb/src/ippdb.h	(revision 11720)
+++ trunk/ippdb/src/ippdb.h	(revision 11733)
@@ -2508,6 +2508,6 @@
 typedef struct {
     char            *exp_tag;
+    psS32           p1_version;
     char            *recipe;
-    psS32           p1_version;
 } p1PendingExpRow;
 
@@ -2519,6 +2519,6 @@
 p1PendingExpRow *p1PendingExpRowAlloc(
     const char      *exp_tag,
-    const char      *recipe,
-    psS32           p1_version
+    psS32           p1_version,
+    const char      *recipe
 );
 
@@ -2551,6 +2551,6 @@
     psDB            *dbh,               ///< Database handle
     const char      *exp_tag,
-    const char      *recipe,
-    psS32           p1_version
+    psS32           p1_version,
+    const char      *recipe
 );
 
@@ -2709,8 +2709,8 @@
 typedef struct {
     char            *exp_tag;
+    psS32           p2_version;
+    psS32           p1_version;
+    char            *label;
     char            *recipe;
-    psS32           p1_version;
-    psS32           p2_version;
-    char            *label;
 } p2PendingExpRow;
 
@@ -2722,8 +2722,8 @@
 p2PendingExpRow *p2PendingExpRowAlloc(
     const char      *exp_tag,
-    const char      *recipe,
+    psS32           p2_version,
     psS32           p1_version,
-    psS32           p2_version,
-    const char      *label
+    const char      *label,
+    const char      *recipe
 );
 
@@ -2756,8 +2756,8 @@
     psDB            *dbh,               ///< Database handle
     const char      *exp_tag,
-    const char      *recipe,
+    psS32           p2_version,
     psS32           p1_version,
-    psS32           p2_version,
-    const char      *label
+    const char      *label,
+    const char      *recipe
 );
 
@@ -2916,9 +2916,9 @@
 typedef struct {
     char            *exp_tag;
+    psS32           p2_version;
+    psS32           p1_version;
     char            *class_id;
+    char            *recipe;
     char            *uri;
-    char            *recipe;
-    psS32           p1_version;
-    psS32           p2_version;
 } p2PendingImfileRow;
 
@@ -2930,9 +2930,9 @@
 p2PendingImfileRow *p2PendingImfileRowAlloc(
     const char      *exp_tag,
+    psS32           p2_version,
+    psS32           p1_version,
     const char      *class_id,
-    const char      *uri,
     const char      *recipe,
-    psS32           p1_version,
-    psS32           p2_version
+    const char      *uri
 );
 
@@ -2965,9 +2965,9 @@
     psDB            *dbh,               ///< Database handle
     const char      *exp_tag,
+    psS32           p2_version,
+    psS32           p1_version,
     const char      *class_id,
-    const char      *uri,
     const char      *recipe,
-    psS32           p1_version,
-    psS32           p2_version
+    const char      *uri
 );
 
@@ -3126,6 +3126,6 @@
 typedef struct {
     char            *exp_tag;
+    psS32           p2_version;
     psS32           p1_version;
-    psS32           p2_version;
     char            *label;
 } p2ProcessedExpRow;
@@ -3138,6 +3138,6 @@
 p2ProcessedExpRow *p2ProcessedExpRowAlloc(
     const char      *exp_tag,
+    psS32           p2_version,
     psS32           p1_version,
-    psS32           p2_version,
     const char      *label
 );
@@ -3171,6 +3171,6 @@
     psDB            *dbh,               ///< Database handle
     const char      *exp_tag,
+    psS32           p2_version,
     psS32           p1_version,
-    psS32           p2_version,
     const char      *label
 );
@@ -3525,7 +3525,9 @@
 typedef struct {
     char            *exp_tag;
+    psS32           p2_version;
+    psS32           p1_version;
     char            *class_id;
+    char            *recipe;
     char            *uri;
-    char            *recipe;
     psF64           bg;
     psF64           bg_stdev;
@@ -3533,6 +3535,4 @@
     char            *b1_uri;
     char            *b2_uri;
-    psS32           p1_version;
-    psS32           p2_version;
     psS16           fault;
 } p2ProcessedImfileRow;
@@ -3545,7 +3545,9 @@
 p2ProcessedImfileRow *p2ProcessedImfileRowAlloc(
     const char      *exp_tag,
+    psS32           p2_version,
+    psS32           p1_version,
     const char      *class_id,
+    const char      *recipe,
     const char      *uri,
-    const char      *recipe,
     psF64           bg,
     psF64           bg_stdev,
@@ -3553,6 +3555,4 @@
     const char      *b1_uri,
     const char      *b2_uri,
-    psS32           p1_version,
-    psS32           p2_version,
     psS16           fault
 );
@@ -3586,7 +3586,9 @@
     psDB            *dbh,               ///< Database handle
     const char      *exp_tag,
+    psS32           p2_version,
+    psS32           p1_version,
     const char      *class_id,
+    const char      *recipe,
     const char      *uri,
-    const char      *recipe,
     psF64           bg,
     psF64           bg_stdev,
@@ -3594,6 +3596,4 @@
     const char      *b1_uri,
     const char      *b2_uri,
-    psS32           p1_version,
-    psS32           p2_version,
     psS16           fault
 );
@@ -3753,6 +3753,6 @@
 typedef struct {
     char            *exp_tag;
+    psS32           p3_version;
     psS32           p2_version;
-    psS32           p3_version;
     char            *label;
 } p3PendingExpRow;
@@ -3765,6 +3765,6 @@
 p3PendingExpRow *p3PendingExpRowAlloc(
     const char      *exp_tag,
+    psS32           p3_version,
     psS32           p2_version,
-    psS32           p3_version,
     const char      *label
 );
@@ -3798,6 +3798,6 @@
     psDB            *dbh,               ///< Database handle
     const char      *exp_tag,
+    psS32           p3_version,
     psS32           p2_version,
-    psS32           p3_version,
     const char      *label
 );
@@ -3957,4 +3957,7 @@
 typedef struct {
     char            *exp_tag;
+    psS32           p3_version;
+    psS32           p2_version;
+    char            *label;
     char            *uri;
     char            *recipe;
@@ -3969,7 +3972,4 @@
     psF32           zp_mean;
     psF32           zp_stdev;
-    psS32           p2_version;
-    psS32           p3_version;
-    char            *label;
     psS16           fault;
 } p3ProcessedExpRow;
@@ -3982,4 +3982,7 @@
 p3ProcessedExpRow *p3ProcessedExpRowAlloc(
     const char      *exp_tag,
+    psS32           p3_version,
+    psS32           p2_version,
+    const char      *label,
     const char      *uri,
     const char      *recipe,
@@ -3994,7 +3997,4 @@
     psF32           zp_mean,
     psF32           zp_stdev,
-    psS32           p2_version,
-    psS32           p3_version,
-    const char      *label,
     psS16           fault
 );
@@ -4028,4 +4028,7 @@
     psDB            *dbh,               ///< Database handle
     const char      *exp_tag,
+    psS32           p3_version,
+    psS32           p2_version,
+    const char      *label,
     const char      *uri,
     const char      *recipe,
@@ -4040,7 +4043,4 @@
     psF32           zp_mean,
     psF32           zp_stdev,
-    psS32           p2_version,
-    psS32           p3_version,
-    const char      *label,
     psS16           fault
 );
