Skip to content

Commit

Permalink
Build datatable-sort
Browse files Browse the repository at this point in the history
  • Loading branch information
lsmith committed Apr 27, 2012
1 parent d4a4620 commit 5c7f041
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions build/datatable-sort/datatable-sort-debug.js
Expand Up @@ -511,8 +511,8 @@ Y.mix(Sortable.prototype, {
cmp = col.sortFn(a, b, (dir === -1));
} else {
// FIXME? Requires columns without sortFns to have key
aa = a.get(col.key);
bb = b.get(col.key);
aa = a.get(col.key) || '';
bb = b.get(col.key) || '';

cmp = (aa > bb) ? dir : ((aa < bb) ? -dir : 0);
}
Expand Down Expand Up @@ -895,4 +895,4 @@ Y.DataTable.Sortable = Sortable;
Y.Base.mix(Y.DataTable, [Sortable]);


}, '@VERSION@' ,{lang:['en'], requires:['datatable-base']});
}, '@VERSION@' ,{requires:['datatable-base'], lang:['en']});
2 changes: 1 addition & 1 deletion build/datatable-sort/datatable-sort-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions build/datatable-sort/datatable-sort.js
Expand Up @@ -511,8 +511,8 @@ Y.mix(Sortable.prototype, {
cmp = col.sortFn(a, b, (dir === -1));
} else {
// FIXME? Requires columns without sortFns to have key
aa = a.get(col.key);
bb = b.get(col.key);
aa = a.get(col.key) || '';
bb = b.get(col.key) || '';

cmp = (aa > bb) ? dir : ((aa < bb) ? -dir : 0);
}
Expand Down Expand Up @@ -895,4 +895,4 @@ Y.DataTable.Sortable = Sortable;
Y.Base.mix(Y.DataTable, [Sortable]);


}, '@VERSION@' ,{lang:['en'], requires:['datatable-base']});
}, '@VERSION@' ,{requires:['datatable-base'], lang:['en']});

0 comments on commit 5c7f041

Please sign in to comment.