Issue 482 - make facet sort case insensitive

git-svn-id: http://google-refine.googlecode.com/svn/trunk@2371 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
Tom Morris 2011-11-12 20:23:39 +00:00
parent 75f4c97bc1
commit c992ed9670

View File

@ -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;