Ability to sort roles world be useful. You may use http://drupal.org/project/role_weights as base for this kind of sorting.

Comments

johnhanley’s picture

Title: Role weighs » Role weights

This feature never dawned on me. I just assumed most people don't have more than a dozen or so roles and the order wouldn't really matter.

I'm not inclined to introduce a dependency (whether optional or required) on another third-party module, but I will leave this issue open for now in case there's interest expressed by other users.

johnhanley’s picture

Status: Active » Postponed (maintainer needs more info)
deggertsen’s picture

I am interested in this being applied. While I don't think it is a vital feature it would be useful to have the ability to sort the available roles. In my case I have about 10 user-selectable roles upon registration.

mdih’s picture

subscribing...

johnhanley’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

I don't intend to provide this feature anytime soon. However it should be possible to adjust the weights of the checkboxes in the profile template (or via hook_form_alter()). Check out this example, which illustrates how to manipulate the form array element values.