Re: GTK2::TreeView column with sortable date column
- From: Matthew Braid <ptkperl mdb id au>
- To: MICHAEL MCGINN <mmcginn rogers com>
- Cc: gtk-perl-list gnome org
- Subject: Re: GTK2::TreeView column with sortable date column
- Date: Wed, 10 Feb 2010 12:51:12 +1000
I'm not sure if this is feasible for your setup, but why not just have
a second, hidden column with the numerical form of the date and tell
your 'stringy date' column to sort via it?
That's what I've got for one of my apps - otherwise you have to
convert all your rows to a numeric form every time you sort anyway.
On 10 February 2010 12:16, MICHAEL MCGINN <mmcginn rogers com> wrote:
I've implemented a TreeView which works well. One of the many columns is a
standard format alphanumeric date column.
I'm looking for advice on how to sort a TreeView column that contains dates;
where the date is formatted (ex: Tue Feb 9, 8:58pm 2010) in a fairly typical
alphanumeric string.
An alpha sort is obviously not correct when looking at date information.
Does anyone know of a way to implement an ascending/descending "date" sort
of a TreeView column which contains dates?
I know I can easily convert to a completely numeric date but I'd rather not.
Thanks in advance.
Michael
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]