Index: trunk/BNC/RTCM3/ephemeris.h
===================================================================
--- trunk/BNC/RTCM3/ephemeris.h	(revision 4001)
+++ trunk/BNC/RTCM3/ephemeris.h	(revision 4002)
@@ -12,4 +12,17 @@
 class t_eph {
  public:
+
+  static bool earlierTime(const t_eph* eph1, const t_eph* eph2) {
+    if      (eph1->_GPSweek < eph2->_GPSweek) {
+      return true;
+    }
+    else if (eph1->_GPSweek == eph2->_GPSweek) {
+      return eph1->_GPSweeks < eph2->_GPSweeks;
+    }
+    else {
+      return false;
+    }
+  }
+
   t_eph() {_ok = false;}
   virtual ~t_eph() {};
Index: trunk/BNC/rinex/reqcedit.cpp
===================================================================
--- trunk/BNC/rinex/reqcedit.cpp	(revision 4001)
+++ trunk/BNC/rinex/reqcedit.cpp	(revision 4002)
@@ -246,4 +246,6 @@
     }
   }
-
-}
+  qStableSort(_ephs.begin(), _ephs.end(), 
+              t_eph::earlierTime);
+
+}
