Skip to content

Commit

Permalink
Quickfix on sorting feeds.
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelclay committed Apr 26, 2011
1 parent 401a0e2 commit 5a4640a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions media/js/newsblur/reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -918,8 +918,8 @@
return -1;
} else if (!feedA && feedB) {
return 1;
} else if (!feedA && !feedB && a && b) {
console.log(['a b 1', a, b]);
} else if (!feedA && !feedB && !_.isNumber(a) && !_.isNumber(b)) {
// console.log(['a b 1', a, b]);
var folderA = _.keys(a)[0];
var folderB = _.keys(b)[0];
return folderA > folderB ? 1 : -1;
Expand All @@ -938,8 +938,8 @@
return -1;
} else if (!feedA && feedB) {
return 1;
} else if (!feedA && !feedB && a && b) {
console.log(['a b 2', a, b]);
} else if (!feedA && !feedB && !_.isNumber(a) && !_.isNumber(b)) {
// console.log(['a b 2', a, b]);
var folderA = _.keys(a)[0];
var folderB = _.keys(b)[0];
return folderA > folderB ? 1 : -1;
Expand Down

0 comments on commit 5a4640a

Please sign in to comment.