Mercurial > p > roundup > code
diff doc/customizing.txt @ 2898:f203541b1116 maint-0.7
merge from HEAD
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 11 Nov 2004 02:53:35 +0000 |
| parents | a204a49e0974 |
| children | 4129ecd31eea |
line wrap: on
line diff
--- a/doc/customizing.txt Wed Nov 10 22:29:21 2004 +0000 +++ b/doc/customizing.txt Thu Nov 11 02:53:35 2004 +0000 @@ -548,6 +548,25 @@ in the "definitional" classes like "priority" and "status". +A note about ordering +~~~~~~~~~~~~~~~~~~~~~ + +When we sort items in the hyperdb, we use one of a number of methods, +depending on the properties being sorted on: + +1. If it's a String, Number, Date or Interval property, we just sort the + scalar value of the property. Strings are sorted case-sensitively. +2. If it's a Link property, we sort by either the linked item's "order" + property (if it has one) or the linked item's "id". +3. Mulitlinks sort similar to #2, but we start with the first Multilink + list item, and if they're the same, we sort by the second item, and + so on. + +Note that if an "order" property is defined on a Class that is used for +sorting, all items of that Class *must* have a value against the "order" +property, or sorting will result in random ordering. + + Examples of adding to your schema ---------------------------------
