Re: Sorting by vale of field

2011-06-29 Thread Judioo
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 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, als

RE: Sorting by vale of field

2011-06-29 Thread Michael Ryan
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 po