couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Couchdb Wiki] Trivial Update of "ViewCollation" by PaulCarey
Date Wed, 23 Jul 2008 15:34:28 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The following page has been changed by PaulCarey:

The comment on the change is:

  This trick was [ originally documented]
by Christopher Lenz.
- === Sorting with Dates ===
+ === Sorting by Dates ===
  It maybe be convenient to store date attributes in a human readable format (i.e. as a String),
but still sort by date. This can be done by converting the date to a number in the emit function.
For example, given a document with a created_at attribute of 'Wed Jul 23 16:29:21 +0100 2008',
the following emit function would sort by date

View raw message