Problem/Motivation

If you create a content type named 'ab' and you have a content type named 'Basic Page' you will see in the configuration page (admin/config/content/onlyone) this order:

Basic Page
ab

This is because the asort() function is used in the _onlyone_process() function but don't take in count the case sensitive.

Proposed resolution

Use the SORT_NATURAL | SORT_FLAG_CASE params in the asort() function.

asort($array, SORT_NATURAL | SORT_FLAG_CASE);

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

Comments

adriancid created an issue. See original summary.

adriancid’s picture

Title: Improve the order in which the types of contents are shown » Improve the order in which the content types are shown

  • adriancid committed 0c1becc on 8.x-1.x
    Issue #2902623: Improve the order in which the content types are shown
    
    

  • adriancid committed f149ec1 on 7.x-1.x
    Issue #2902623: Improve the order in which the content types are shown
    
    
adriancid’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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