Re: Sorting date stored in milliseconds time
Ben writes: > > I store my date in milliseconds, how can I do a sort on it? SortField > has INT, FLOAT and STRING. Do I need to create a new sort class, to > sort the long value? > Why do you need that precicion? Remember: there's a price to pay. The memory required for sorting and the time to set up the sort cache depends on the number of different terms, dates in your case. I can hardly think of an application where seconds are relevant, what do you need milliseconds for? Morus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sorting date stored in milliseconds time
Just an idea off the top of my head you could create a custom sort, or alternatively you could store the date as separate fields such as "year", "month", "day", "time", and provide multi-field sort. Erik On Feb 25, 2005, at 11:36 PM, Ben wrote: Hi I store my date in milliseconds, how can I do a sort on it? SortField has INT, FLOAT and STRING. Do I need to create a new sort class, to sort the long value? Thanks Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Sorting date stored in milliseconds time
Hi I store my date in milliseconds, how can I do a sort on it? SortField has INT, FLOAT and STRING. Do I need to create a new sort class, to sort the long value? Thanks Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]