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:
parent
23c02b870a
commit
5fa1e2a552
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user