i have overwritten a field's output, and want to use it as the Sort criteria. so i must overwrite the Sort criteria? is there a way to overwrite the views module Sort criteria?
the sort criteria is:
table votingapi_vote
, the field content_id
,which is $node->nid, the vaule=1
. i want to to sort it by the number counts of the vaule
. desc. HOW TO do it?
if i want to alter the sort criteria in the template.php, is there a way to get it?