Sorting (afaik) depends quite heavily on the query-fn and hence the
store. I posted a make-query-fn to the pastebin a while back..
The kludge I use is:
http://paste.lisp.org/+1YH1 and there's an
annotation for composite/linked objects, though it may not be
applicable to SQL stores, I use cl-prevalence.
It all depends on how the value for that slot is obtained, again iirc,
weblocks funcalls the view field slot name if there is no slot with
that exact name, so that's why the kludge works (Leslie can correct me
here).
Using custom readers, writers and presenters (as well as view field
names which are functions) yields quite a bit of flexibility.