Quote:
Originally Posted by ownedbycats
Alternately to {title}, I use this to display the first letter of the title.
Code:
{title_sort:'contains(t=uppercase(re($, '^\W*(\w).*$','\1')), '\d', '0-9', t)'}
|
How is this better than using {title_sort} with first letter grouping? Is it just the 0-9?
Also, why not make it hierarchical? Something like
Code:
program:
ts = re($title_sort, '\.', ':');
contains(t=uppercase(re(ts, '^\W*(\w).*$','\1')), '\d', '0-9', t) & '.' & ts
gives this
EDIT: The initial re() is there to change periods to colons so they won't confuse the hierarchy.
EDIT 2: If you use standard first letter grouping then you don't need to change the periods or make the column hierarchical.