changeset 109:d676299a0a2d

Fix bug in SMI sorter
author Lewin Bormann <lbo@spheniscida.de>
date Wed, 15 Jun 2016 19:58:21 +0200
parents 27afb9528618
children d4e87988c65b
files src/shard_merge.rs
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/shard_merge.rs	Wed Jun 15 19:55:04 2016 +0200
+++ b/src/shard_merge.rs	Wed Jun 15 19:58:21 2016 +0200
@@ -69,7 +69,9 @@
             right: Box::new(iter::empty()),
             left_peeked: None,
             right_peeked: None,
-            comparer: sort::default_generic_compare,
+            // map output is sorted in dictionary order (Aa, aa, Ba) instead of numeric (Aa, Ba,
+            // aa)
+            comparer: sort::dict_string_compare,
         }
     }