I have submitted code to sort on named fields. Assuming it is accepted, the API is:
Code:
library_view.sort_by_named_field(field, order, reset=True)
If the field (a lookup name) is a visible column, then that display is sorted by that column and the sort indicators are set. If the field is not visible, then the display is sorted but no sort indicators are set.
Order is a boolean. True == ascending.
If reset is true, the screen is repainted. Note that the screen is always repainted if the field is a visible column.