From c992ed9670bc954263d7de1a8d0f991e9c4b61da Mon Sep 17 00:00:00 2001 From: Tom Morris Date: Sat, 12 Nov 2011 20:23:39 +0000 Subject: [PATCH] Issue 482 - make facet sort case insensitive git-svn-id: http://google-refine.googlecode.com/svn/trunk@2371 7d457c2a-affb-35e4-300a-418c747d4874 --- main/webapp/modules/core/scripts/facets/list-facet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/webapp/modules/core/scripts/facets/list-facet.js b/main/webapp/modules/core/scripts/facets/list-facet.js index 61b0e1f0f4a4..0ba90db139e8 100644 --- a/main/webapp/modules/core/scripts/facets/list-facet.js +++ b/main/webapp/modules/core/scripts/facets/list-facet.js @@ -131,7 +131,7 @@ ListFacet.prototype.updateState = function(data) { ListFacet.prototype._reSortChoices = function() { this._data.choices.sort(this._options.sort == "name" ? function(a, b) { - return a.v.l.localeCompare(b.v.l); + return a.v.l.toLowerCase().localeCompare(b.v.l.toLowerCase()); } : function(a, b) { var c = b.c - a.c;