collection->sort_by_key(), drupal path fixes.