Minor change in comparison loop

git-svn-id: https://hyracks.googlecode.com/svn/trunk/hyracks@256 123451ca-8445-de46-9d55-352943316053
diff --git a/hyracks-dataflow-std/src/main/java/edu/uci/ics/hyracks/dataflow/std/sort/FrameSorter.java b/hyracks-dataflow-std/src/main/java/edu/uci/ics/hyracks/dataflow/std/sort/FrameSorter.java
index 8a34e45..0556516 100644
--- a/hyracks-dataflow-std/src/main/java/edu/uci/ics/hyracks/dataflow/std/sort/FrameSorter.java
+++ b/hyracks-dataflow-std/src/main/java/edu/uci/ics/hyracks/dataflow/std/sort/FrameSorter.java
@@ -237,7 +237,7 @@
         byte[] b2 = buf2.array();
         fta1.reset(buf1);
         fta2.reset(buf2);
-        for (int f = 0; f < sortFields.length; ++f) {
+        for (int f = 0; f < comparators.length; ++f) {
             int fIdx = sortFields[f];
             int f1Start = fIdx == 0 ? 0 : buf1.getShort(j1 + (fIdx - 1) * 2);
             int f1End = buf1.getShort(j1 + fIdx * 2);
@@ -254,4 +254,4 @@
         }
         return 0;
     }
-}
\ No newline at end of file
+}