Subject: [sup-talk] ThreadSet question

From: [email-masked] (Marcus Williams)
Date: Thu, 07 Aug 2008 15:24:07 +0100

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

---

From: [email-masked] (William Morgan)
Date: Thu, 07 Aug 2008 08:24:11 -0700

Reformatted excerpts from Marcus Williams's message of 2008-08-07:
> anyone is interested) 

Cool!

> If I'm calling load_n_threads directly what do I have to do to get the

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>

---

From: [email-masked] (Marcus Williams)
Date: Thu, 07 Aug 2008 21:18:03 +0100

> Once they're loaded I pull them out of @ts.threads and into @threads,

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

Marcus