The "Edit components" SELECT list on the create feature screen is out of alphabetical order because it's sorting on array keys that are sometimes different from their label (e.g. the "node" component is labeled "Content types"). See below:

The solution is simple. I'll attach a patch immediately.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

TravisCarden’s picture

Assigned: TravisCarden » Unassigned
Status: Active » Needs review
FileSize
858 bytes
hefox’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Needs review » Needs work

applies cleaning to 7.x but

Parse error: syntax error, unexpected T_FUNCTION in [..]/features.admin.inc on line 70

TravisCarden’s picture

FileSize
868 bytes

Aw, nuts! PHP doesn't support anonymous functions before version 5.3. Well, here's a new patch accounting for that, rolled against 7.x-1.x-dev.

TravisCarden’s picture

Status: Needs work » Needs review
febbraro’s picture

Status: Needs review » Needs work
+++ b/features.admin.incundefined
@@ -67,7 +67,10 @@ function features_export_form($form, $form_state, $feature = NULL) {
+  function compare($a, $b) {

All functions in PHP have global scope so this needs to be better namespaced and should also be moved external to the features_export_form function.

febbraro’s picture

Status: Needs work » Fixed
tim.plunkett’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
Status: Fixed » Patch (to be ported)
TravisCarden’s picture

Status: Patch (to be ported) » Needs review
FileSize
1.16 KB

Thank you for the shepherding, @febbraro!

Here's a patch against 6.x-1.x-dev.

tim.plunkett’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Updated issue summary.