Hi Ahson, You'll really want to store an additional date field (make it a TrieDateField type) that has only the date, and in the reverse order from how you've shown it. You can still keep the one you've got, just use it only for 'human viewing' rather than sorting. Something like: 20080205 if your example is 5 Feb, or 20080502 for May 2nd.
This way, the parsing is most efficient, you won't have to do any tricky parsing at sort time, and, when your index gets large, your sorted searches will remain fast. On Mon, Sep 27, 2010 at 7:45 PM, Ahson Iqbal <mianah...@yahoo.com> wrote: > hi all > > I have a question related to sorting of date field i have Date field that is > indexed like a string and look like "5/2/2008 4:33:30 PM" i want to do > sorting > on this field on the basis of date, time does not matters. any suggestion > how i > could ignore the time part from this field and just sort on the date? > > >