Problem/Motivation

When adding a View with this module, the list of Views to select from is un-sorted. When the list of views become large it becomes difficult to locate the desired view. I believe that usability is enhanced greatly by simply sorting these by name.

Proposed Resolution

The function "views_get_views_as_options", which is used to retrieve the list of views, already supports sorting, so the attached one line patch simply adds the extra parameters to this function call to return the sorted list.

Remaining tasks

- review

User interface changes

Formatting only - select list of views to embed is sorted by view title.

API changes

None

CommentFileSizeAuthor
#1 2537814-1.patch652 bytesrobertwb
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

robertwb’s picture

Issue summary: View changes
FileSize
652 bytes
robertwb’s picture

Issue summary: View changes
robertwb’s picture

Issue summary: View changes
Status: Active » Needs review
dawehner’s picture

Status: Needs review » Fixed

Thank you, small steps towards a great experience are great!

jibran’s picture

Version: 7.x-1.x-dev » 8.x-1.x-dev
Category: Feature request » Task
Status: Fixed » Patch (to be ported)

Can we please patch 8.x as well?

robertwb’s picture

Version: 8.x-1.x-dev » 7.x-1.x-dev

Seems like a good idea to path d8, but I think maybe a separate issue should be made?

robertwb’s picture

Created separate issue for d8. Patch on the way.

  • jibran committed ea5acc5 on 8.x-1.x authored by robertwb
    Issue #2537814 by robertwb: Sort the list of views
    
jibran’s picture

Version: 7.x-1.x-dev » 8.x-1.x-dev
Status: Patch (to be ported) » Fixed

Committed ea5acc5 to 8.x-1.x
Thanks for the patch.

Status: Fixed » Closed (fixed)

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