On Thu, Aug 28, 2008 at 10:22 AM, Adam Winer <[EMAIL PROTECTED]> wrote:

> On Thu, Aug 28, 2008 at 9:55 AM, Cassie <[EMAIL PROTECTED]> wrote:
> > On Thu, Aug 28, 2008 at 9:45 AM, Adam Winer <[EMAIL PROTECTED]> wrote:
> >
> >> Two quick questions:
> >>
> >> - Are there String "enums" anywhere that list possible values for sort
> >> by and filter?
> >
> >
> > it can be any field of the object being sorted. so for people, it can be
> > Person.Field.*, or topFriends, or some container specific js sort
> extension
>
> Person.Field.*, we've got constants for.  Container-specific is
> container-specific, of course.  Shouldn't we have a constant for
> sorting topFriends and for filters, topFriends and hasApp?


There are string constants in PersonService. Is that what you mean?


>
> >> - Is "topFriends" really both a filter *and* a sort order?  Shouldn't
> >> it only be a sort order?
> >
> >
> > yes. see the opensocial js spec.
>
> Weird (I'm hard-pressed to imagine a gadget developer actually wanting
> the filter except by confusion), but OK.
>

In some containers topFriends is like a group. As in Adam is one of my top
friends but Louis is not. (like the popular topfriends gadget) In other
containers topFriends is a sort as in Adam is a better friend than Louis he
comes above Louis as a top friend.

Opensocial and thus Shindig need to support both concepts.


>
> -- Adam
>
> >
> >
> >>
> >>
> >> -- Adam
> >>
> >
>

Reply via email to