I have a custom select option field with about 35 options. I'd like to be able to sort the field in Drupal Views by weight instead of value or name.
I looked around for the views integration in the core files but couldn't find the section that exposes custom field option groups to views.
I would assume that it is in all/modules/civicrm/drupal/modules/views/components/civicrm.core.inc but I don't see any mention there.
Custom option groups appear to be exposed in all/modules/civicrm/drupal/modules/views/civicrm.views.inc but I don't see any mention of the option_value table to add the weight column.
Any suggestions on how to expose the weight of individual custom select options in Views?
Thank you!