From bc05c3d19cfb87f3cb0462564b4606ea4273cecf Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 9 Nov 2010 15:45:14 +0300 Subject: resort_feedlist: fix glitch caused by FEEDR-0 --- functions.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'functions.js') 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); -- cgit v1.2.3