the page at /admin/config/services/mailchimp/lists/add ought to present the lists sorted in alphabetical order. it would be even better to sort these in the order they're show at mailchimp.com/lists/ but i don't see a weight field in the list objects returned by the API. alphabetical order is better than nothing, so let's do that.

Comments

mvc’s picture

Status: Active » Needs review
StatusFileSize
new540 bytes

trivial patch attached.

mvc’s picture

StatusFileSize
new908 bytes

Hmm, on second thought, the sorting should be done before the list of lists is cached. That way the ordered list can be used in the mailchimp_campaign module as well.

Also, I incorrectly sorted on the list key above. Fixed by using uasort() instead of asort().

antipex’s picture

Applied patch in 1a054c4.

antipex’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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