Variable: org-get-priority-function
org-get-priority-function is an alias and customizable for
org-priority-get-priority-function, defined in org.el.gz.
Value
nil
Documentation
Function to extract the priority from a string.
The string is normally the headline. If this is nil, Org computes the priority from the priority cookie like [#A] in the headline. It returns an integer, increasing by 1000 for each priority level.
The user can set a different function here, which should take a string as an argument and return the numeric priority.