Thanks Luke. Given that we're both doing something similar that's not supported by the API, perhaps we should add support at some point.
2009/12/2 luke <[email protected]>: > Mr Harris, > > For posterity: > > so. There isn't a way that i know of to do it via Posts::get directly > per say, but i wrote a class that orders posts according to some index > set that you provide. so, in my case,i wanted to sort by views, but > views were in an external table so i got the set of post ids in order, > then match them up to posts > > Check it out, note that it is _very_ dev, as in, half the code is > probably junk. http://pastoid.com/byd > And to use, you do something like: http://pastoid.com/bye > > Originally, the idea was to use natural sort, but something went wrong > with that. I think it had something to do with count limiting or > wanting to restrict to a set of id's as well as sort by them. Anyway. > at some point i'll go back to it. > > the nice thing is that, you can supply a list of id's and it will sort > with those first, but you can further refine using standard Posts::Get > syntax and acls are respected > > For more context: http://drunkenmonkey.org/irc/habari/2009-12-02#T04-58-09 > > Cheers! > > -- > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/habari-dev -- Michael C. Harris, School of CS&IT, RMIT University http://twofishcreative.com/michael/blog IRC: michaeltwofish #habari -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/habari-dev
