summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-09 15:45:14 +0300
committerAndrew Dolgov <[email protected]>2010-11-09 15:45:14 +0300
commitbc05c3d19cfb87f3cb0462564b4606ea4273cecf (patch)
tree3f907ff0ea47710def5fc7b3dfdee3c0ff9657db /functions.js
parent11eb3f4e544804b1f7d7155de99510c77ee4c5d2 (diff)
resort_feedlist: fix glitch caused by FEEDR-0
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/functions.js b/functions.js
index 4942b50cd..9e990c447 100644
--- a/functions.js
+++ b/functions.js
@@ -650,8 +650,10 @@ function resort_category(node, cat_mode) {
var tmp_name = get_feed_entry_name(list[i]);
var cur_name = get_feed_entry_name(list[j]);
- var valid_pair = cat_mode || (list[i].id.match(/FEEDR-[0-9]/) &&
- list[j].id.match(/FEEDR-[0-9]/));
+ /* we don't want to match FEEDR-0 - e.g. Archived articles */
+
+ var valid_pair = cat_mode || (list[i].id.match(/FEEDR-[1-9]/) &&
+ list[j].id.match(/FEEDR-[1-9]/));
if (valid_pair && ((by_unread && (cur_val > tmp_val)) || (!by_unread && (cur_name < tmp_name)))) {
tempnode_i = list[i].cloneNode(true);