Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   Possible to sort attribute chronologically? , posted by Dennis Seitz on Tue Jan 29 04:25:11 2008 
    icon2.gif   Re: Possible to sort attribute chronologically? , posted by Stefan Ritt on Tue Jan 29 08:02:41 2008 
       icon2.gif   Re: Possible to sort attribute chronologically? , posted by Stefan Ritt on Tue Jan 29 08:09:50 2008 
          icon2.gif   Re: Possible to sort attribute chronologically? , posted by Dennis Seitz on Thu Feb 7 01:33:03 2008 
          icon2.gif   Re: Possible to sort attribute chronologically? , posted by Dennis Seitz on Tue Apr 29 02:00:03 2008 
             icon2.gif   Re: Possible to sort attribute chronologically? , posted by Stefan Ritt on Mon Jun 2 11:11:27 2008 
Message ID: 65717     Entry time: Tue Jan 29 08:02:41 2008     In reply to: 65716     Reply to this: 65718
Icon: Reply  Author: Stefan Ritt  Author Email: stefan.ritt@psi.ch 
Category: Question  OS:   ELOG Version: 2.7.0 
Subject: Re: Possible to sort attribute chronologically?  
> 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.
ELOG V3.1.5-3fb85fa6