Tables: Allow sorting inactive time stamps.
commit5f68200625ae5c2948109883675df91ab675e888
authorCarsten Dominik <carsten.dominik@gmail.com>
Fri, 6 Feb 2009 15:50:35 +0000 (6 16:50 +0100)
committerCarsten Dominik <carsten.dominik@gmail.com>
Fri, 6 Feb 2009 15:50:35 +0000 (6 16:50 +0100)
tree9147a5a03506512a94aeba9ba30e62cce91c960d
parent244084b33f9adfc3c76fe78a0d54d2e211a76344
Tables: Allow sorting inactive time stamps.

Hsui-Khuern Tang writes:

   I have a table where one column consists of inactive dates, such as
   this:

     | Date             | OK? |
     |------------------+-----|
     | [2009-01-30 Fri] | x   |
     | [2009-01-27 Tue] | x   |
     | [2009-01-28 Wed] | x   |

   I can't sort the table by that column.  If I change the dates to
   active, then sorting (by time) works fine.  Is this behavior
   intentional?

Yes, intentional, because the same routine also does sorting of
entries and should prefer active time stamps.  However, I realize that
we can still look for an inactive time stamp when no active one can be
found.   This is what this commit implements.
lisp/ChangeLog
lisp/org.el