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
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>
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