Thanks, Yes this is the work around I am currently doing. Still wondering is the sort method can be used alone.
On 29 June 2011 18:34, Michael Ryan <mr...@moreover.com> wrote: > You could try adding a new int field (like "typeSort") that has the desired > sort values. So when adding a document with type:car, also add typeSort:1; > when adding type:van, also add typeSort:2; etc. Then you could do > "sort=typeSort asc" to get them in your desired order. > > I think this is also possible with custom function queries, but I've never > done that. > > -Michael >