Fixed Issue 55: Use stable sorting for text facets sorted by count.

git-svn-id: http://google-refine.googlecode.com/svn/trunk@841 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
David Huynh 2010-05-22 02:28:18 +00:00
parent 23c02b870a
commit 5fa1e2a552
2 changed files with 6 additions and 1 deletions

View File

@ -13,6 +13,10 @@ Fixes:
- Issue 45: "Renaming Cells with Ctrl-Enter produced ERROR"
Tentative fix for a concurrent bug.
- Issue 46: "Array literals in GEL"
- Issue 55: "Use stable sorting for text facets sorted by count"
Features:
- Row/record sorting (Issue 32)
Changes:
- Moved unit tests from JUnit to TestNG

View File

@ -101,7 +101,8 @@ ListFacet.prototype._reSortChoices = function() {
return a.v.l.localeCompare(b.v.l);
} :
function(a, b) {
return b.c - a.c;
var c = b.c - a.c;
return c !== 0 ? c : a.v.l.localeCompare(b.v.l);
}
);
};