Monday, February 02, 2004
A new twist on table sorting: the default sort order should vary with column type. If you request a sort on a numeric column, we should present the high numbers at the top (sort descending). On the other hand, a text column's default sort should be ascending so that it runs a-z.
Added a new sort code, sortdef_, which knows all this and does it for you.
Tidied up sort code generally. The colspec returned inside our IDynamicTable object reflects the actual state of the table in its most precise form, so you can request
.country.sortdef_gdp.
and obtain
.county.sortdesc_gdp.
in the returned object. This enables the client to reverse the sort order if requested.
T