finalcut / wp-feedlist

Automatically exported from code.google.com/p/wp-feedlist
0 stars 0 forks source link

Feedlist Sorts Numbered Links Incorrectly #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Using to calling my netflix queue RSS.
2. Feedlist sorting the link list incorrectly. 
3. You can see how it is being output here in the sidebar: 
www.bumpershine.com.

What is the expected output? What do you see instead?
Ordered list 1 to 10. Instead of 1, 2, 3..., I am seeing 1, 10, 2, 3...

What version of the product are you using? On what operating system?
v. 2.2 (April 2007)

Please provide any additional information below.

This call will show the error:
feedList(array("rss_feed_url"=>"http://rss.netflix.com/Top100RSS",
        "num_items"=>10,
        "show_description"=>false,
        "random"=>false,
        "sort"=>"asc",
        "new_window"=>true,
        "show_date"=>false
        )
    ); ?>

Original issue reported on code.google.com by dacap...@gmail.com on 17 Apr 2007 at 4:32

GoogleCodeExporter commented 9 years ago
Forgot to mention, site is running on linux/php web host.

Original comment by dacap...@gmail.com on 17 Apr 2007 at 4:33

GoogleCodeExporter commented 9 years ago
if they are numbered in an order then it is best to not specify a sort order at 
all
as the natural sort order of the feed is probably what you want.

I can't change how it sorts becuase the sort is a string based sort and as such 
1,
10, 2, 3 is perfectly correct even though to the human eye it is not.

Call it like so:

feedList(array("rss_feed_url"=>"http://rss.netflix.com/Top100RSS",
        "num_items"=>10,
        "show_description"=>false,
        "random"=>false,
        "new_window"=>true,
        "show_date"=>false
        )
    ); ?>

Oddly though there is a bug in that sorting is occuring even if no sort is 
specified.
 If you just say "9" to be returned instead of 10 the sorting is correct (10 is not
included).

Original comment by bill.raw...@gmail.com on 18 Apr 2007 at 12:54

GoogleCodeExporter commented 9 years ago
I have updated the zip file and the feedList.php file to correctly NOT sort if 
"none"
or no sort parameter is specified.

Original comment by bill.raw...@gmail.com on 18 Apr 2007 at 1:04