PEAK XOOPS - Order of entries displayed not same as XML listing... in englishin japanese

Order of entries displayed not same as XML listing...

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 .2 | Posted on 2007/8/2 10:06
Nobelium  ¸àĹ   Posts: 47
here's something interesting and I can't figure out how to fix...

D3Pipes pulls a boxoffice rss feed and then displays the order of the 10 films wrong. (should be 1 thru 10 with the highest $$ pictures first)

Here's the main page order -
10, 5, 8, 4, 6, 3, 9, 2, 1, 7

And the Block (async) displays something different -
4, 7, 5, 1, 2, 6, 9, 8, 3, 10

Neither, of course, is good.

The entries are listed in proper order in the XML file and all the entries have the same date and time down to the seconds. Pipes doesn't seem to be ordering them on alphabet or numbers...?????

here's the rss feed - http://rss.ent.yahoo.com/movies/boxoffice.xml

Anyway to get it to display in proper order?

thanks.
Votes:3 Average:6.67
Previous post - Next post | Parent - Children.1 | Posted on 2007/8/5 10:07
Nobelium  ¸àĹ   Posts: 47
It would seem that a SORT option would handle this. As a workaround I tried creating a single union pipe with AGGREGATION AND SORT, but the order is not sorted by number or alpha. It even comes up with a 3rd, different order for the entries (7,1,2,9,3,6,4,8,5,10).

A second boxoffice feed does the same. All of it's entries have the same time-date stamp as well.

Is it possible to create a SORT option for the pipe with possible factors being AMPHA, NUMERICAL or NONE? (where NONE would use the order that the XML feed is originally)

And maybe also being able to apply the SORT to different fields? (so you could sort by the description, headline or pubdate for instance)

Great work on this module.
Votes:1 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2007/8/12 6:21
GIJOE  ÀèǤ·³Áâ   Posts: 4110
hi Nobelium.

I'm sorry my late replying.

I read your post, and your suggestion sounds quite reasonable.


(1) XML Parser should not return sorted order

I'll fix it soon.

(2) Create a new joint type of "Sort"

I'll add it, but not so soon.
Votes:1 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2007/8/16 4:14
Nobelium  ¸àĹ   Posts: 47
Thanks very much GIJOE for looking into this.

I saw that the .51 version had a KEITHXML change re sorting, but it doesn't appear to address this particular problem.

I've just installed a test version and still get wacky ordering results...

Maybe that update/change wasn't for this problem?
Votes:1 Average:10.00

none Re: Sort Option for Pipe

msg# 1.1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2007/8/16 4:41
GIJOE  ÀèǤ·³Áâ   Posts: 4110
hi Nobelium.

Quote:

I saw that the .51 version had a KEITHXML change re sorting, but it doesn't appear to address this particular problem.

I've just installed a test version and still get wacky ordering results...

Maybe that update/change wasn't for this problem?

Sounds odd.
I've fixed the problem in 0.51.
Have you overwrite all files into the server?

Or clear all of caches.
Votes:1 Average:10.00

none Re: Sort Option for Pipe

msg# 1.1.1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2007/8/16 6:43
Nobelium  ¸àĹ   Posts: 47
Yep. That's why I waited on the installed one (cache issues), but no change.

So, I installed a fresh new module in a test site and get the same mixed up order.

I've got an image, but am unable to include it in this forum. I'll email it to you...
Votes:1 Average:10.00

none Re: Sort Option for Pipe

msg# 1.1.1.1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2007/8/17 4:32
GIJOE  ÀèǤ·³Áâ   Posts: 4110
hmmm.

my test pipe is ...

1. fetch-snoopy    http://rss.ent.yahoo.com/movies/boxoffice.xml
2. parse-keithxml  rss

It displays right order of entries.
Votes:1 Average:10.00

none Re: Sort Option for Pipe

msg# 1.1.1.1.1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2007/8/17 6:45
Nobelium  ¸àĹ   Posts: 47
Just thought of this in the car coming home - maybe it's not KEITHXML...maybe it's the script(s) pulling it from the database to display (I am clipping it)???
Votes:1 Average:10.00

none Re: Sort Option for Pipe

msg# 1.1.1.1.1.1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2007/8/18 5:14
GIJOE  ÀèǤ·³Áâ   Posts: 4110
hi Nobelium.

With this pipe
1. fetch-snoopy    http://rss.ent.yahoo.com/movies/boxoffice.xml
2. parse-keithxml  rss
3. clip
It displays reversed order.
But it looks natural behaviour, though I have to make some kind of sorting joints.

Quote:

Just thought of this in the car coming home - maybe it's not KEITHXML...maybe it's the script(s) pulling it from the database to display (I am clipping it)???

If you want to display "ranking", don't clip it.
Votes:1 Average:10.00

none Re: Sort Option for Pipe

msg# 1.1.1.1.1.1.1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2007/8/21 14:35
Nobelium  ¸àĹ   Posts: 47
I know I'm beating this dog to death, but nope. Still not working for me. I have no doubt it's working for you, but I've tried many variations/options:

installed new module (.51)
installed new module on new xoops site (yes even that)
no clipping
using only snoopy and keithxml(rss) (no cache or anything else)
using standard options with wizard, still no clipping

And none work.

Have you actually viewed this in a block? Or just the debug fetch or something? IE, maybe it's happening after the fetch and parse...

I can send pics, but it's pretty random which order the entries are displayed...
Votes:1 Average:10.00

none Re: Sort Option for Pipe

msg# 1.1.1.1.1.1.1.1.1.1.1
Previous post - Next post | Parent - No child | Posted on 2007/8/22 6:07
GIJOE  ÀèǤ·³Áâ   Posts: 4110
Quote:

Nobelium wrotes:
And none work.
which is the meaning of "none work"?
Just a problem of ordering

Anyway, I've already released 0.52.
Try it.
Votes:1 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2007/8/23 1:29
Nobelium  ¸àĹ   Posts: 47
I meant none of the various ways/options I tried worked to give me an unscrambled list. I'll install .52 and give it a try. Thanks!
Votes:4 Average:10.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!