Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] ThreadSet question
@ 2008-08-07 14:24 Marcus Williams
  2008-08-07 15:24 ` William Morgan
  0 siblings, 1 reply; 3+ messages in thread
From: Marcus Williams @ 2008-08-07 14:24 UTC (permalink / raw)


Hi -

I'm trying to get a set of threads back from a search (messing with a
web interface to sup - will send a patch once its up and running if
anyone is interested) but I cant get it to sort the threads in date
order as it does in the sup console. As far as I can see it should
just do it but for some reason it doesnt. 

If I'm calling load_n_threads directly what do I have to do to get the
threads in date order?

Thanks

Marcus


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [sup-talk] ThreadSet question
  2008-08-07 14:24 [sup-talk] ThreadSet question Marcus Williams
@ 2008-08-07 15:24 ` William Morgan
  2008-08-07 20:18   ` Marcus Williams
  0 siblings, 1 reply; 3+ messages in thread
From: William Morgan @ 2008-08-07 15:24 UTC (permalink / raw)


Reformatted excerpts from Marcus Williams's message of 2008-08-07:
> I'm trying to get a set of threads back from a search (messing with a
> web interface to sup - will send a patch once its up and running if
> anyone is interested) 

Cool!

> If I'm calling load_n_threads directly what do I have to do to get the
> threads in date order?

I explicitly sort them by date before display. See ThreadIndexMode#update.
Once they're loaded I pull them out of @ts.threads and into @threads,
and sort them.
-- 
William <wmorgan-sup at masanjin.net>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [sup-talk] ThreadSet question
  2008-08-07 15:24 ` William Morgan
@ 2008-08-07 20:18   ` Marcus Williams
  0 siblings, 0 replies; 3+ messages in thread
From: Marcus Williams @ 2008-08-07 20:18 UTC (permalink / raw)


On 7.8.2008, William Morgan wrote:
> > If I'm calling load_n_threads directly what do I have to do to get the
> > threads in date order?
> 
> I explicitly sort them by date before display. See ThreadIndexMode#update.
> Once they're loaded I pull them out of @ts.threads and into @threads,
> and sort them.

Ah, that explains it :) ... and now I have sorted threads. Bit more
work and this might actually be useful!

Marcus


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-08-07 20:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-07 14:24 [sup-talk] ThreadSet question Marcus Williams
2008-08-07 15:24 ` William Morgan
2008-08-07 20:18   ` Marcus Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox