> Hi,
>
> We've defined a "LastEdit" attribute for some of our logs so that we can indicate that an entry has been revised, and when that was done.
>
> From our config:
>
> Attributes = Last Edit, etc etc
> .
> .
> .
> Preset Last Edit =$date
> Locked Attributes = Last Edit
> Subst on edit Last Edit = $date
>
> This works fine, but when we sort the LastEdit column, the dates are sorted alphabetically.
> Is there a way to tell Elog to treat this particular attribute as a date when sorting?
You are missing:
Type Last Edit = datetime
which will tread the "Last Edit" attribute as a date/time combination. Actually it's stored
internally in seconds since Jan 1st 1970, so sorting will work right. The only caveat is that
when you edit an entry, the "Last Edit" is displayed really in seconds since 1970, but I will
fix this in the next release. |