schedule: encode RepetitiveInterval in ascending order

Change-Id: Ife0ae2a933fdd042c6ffaaafb66839c76c88e508
Refs: #3279
diff --git a/tests/unit-tests/schedule.t.cpp b/tests/unit-tests/schedule.t.cpp
index 61a974a..1d86787 100644
--- a/tests/unit-tests/schedule.t.cpp
+++ b/tests/unit-tests/schedule.t.cpp
@@ -198,15 +198,15 @@
     0x86, 0x0f,
       0x32, 0x30, 0x31, 0x35, 0x30, 0x38, 0x32, 0x35, 0x54, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30,
     0x87, 0x0f,
-      0x32, 0x30, 0x31, 0x35, 0x30, 0x38, 0x32, 0x38, 0x54, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30,
+      0x32, 0x30, 0x31, 0x35, 0x30, 0x38, 0x32, 0x35, 0x54, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30,
     0x88, 0x01,
-      0x06,
+      0x04,
     0x89, 0x01,
-      0x08,
+      0x07,
     0x8a, 0x01,
-      0x01,
+      0x00,
     0x8b, 0x01,
-      0x01,
+      0x00,
   /////
   0x8c, 0x2e, // RepetitiveInterval
     0x86, 0x0f,
@@ -226,15 +226,15 @@
     0x86, 0x0f,
       0x32, 0x30, 0x31, 0x35, 0x30, 0x38, 0x32, 0x35, 0x54, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30,
     0x87, 0x0f,
-      0x32, 0x30, 0x31, 0x35, 0x30, 0x38, 0x32, 0x35, 0x54, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30,
+      0x32, 0x30, 0x31, 0x35, 0x30, 0x38, 0x32, 0x38, 0x54, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30,
     0x88, 0x01,
-      0x04,
+      0x06,
     0x89, 0x01,
-      0x07,
+      0x08,
     0x8a, 0x01,
-      0x00,
+      0x01,
     0x8b, 0x01,
-      0x00,
+      0x01,
   /////
   0x8e, 0x30, // BlackIntervalList
   /////