ad_sort_primary_key orderby
return the primary (first) key of an order spec used by
Source code:
if {[regexp {^([^*,]+)} $orderby match]} { return $match } return $orderby