From 32773122c497addcd528c068839188e1360c7562 Mon Sep 17 00:00:00 2001 From: Tom Morris Date: Wed, 10 Jul 2013 15:12:49 -0400 Subject: [PATCH] Fix CollationKey creation - fixes #753 --- main/src/com/google/refine/sorting/StringCriterion.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/src/com/google/refine/sorting/StringCriterion.java b/main/src/com/google/refine/sorting/StringCriterion.java index 2a342e6ae..4807c2507 100644 --- a/main/src/com/google/refine/sorting/StringCriterion.java +++ b/main/src/com/google/refine/sorting/StringCriterion.java @@ -71,8 +71,8 @@ public class StringCriterion extends Criterion { return new KeyMaker() { @Override protected Object makeKey(Object value) { - return (ExpressionUtils.isNonBlankData(value) && !(value instanceof String)) ? - collator.getCollationKey(value.toString()) : value; + return collator.getCollationKey((ExpressionUtils.isNonBlankData(value) + && !(value instanceof String)) ? value.toString() : (String) value); } @Override