View Single Post
Old 04-14-2011, 07:57 AM   #36
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,509
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
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.
chaley is offline   Reply With Quote