Drupal's node/add page displays the several content types you can create; these are sorted by their Drupal ID/type/whatever it's called (blog, book, forum, page, story, etc).

If you're using Drupal in English, everything is cool. However, when you're using other languages it all becomes one big unsorted mess. For example, in Portuguese a story node is called "Artigo" (article); however, it sits at the bottom of the list because it's ordered as "story". Things get confusing for the users really fast, especially when had extra node types: image, chatroom, acidfree album, etc, etc.

The list should really be ordered by each node type's title, not by the type itself.

CommentFileSizeAuthor
#1 157905.patch1.18 KBblakehall

Comments

blakehall’s picture

Status: Active » Needs review
StatusFileSize
new1.18 KB

Made two changes that seem to fix this problem.

  • _node_types_build() was ordering by type instead of name
  • uksort($item, 'strnatcasecmp') on line 2213 (in function node_add) seems to cause an incorrect sort.

This patch fixes the query, but only comments out the sort. Do we need to sort this array at all?

ricmadeira’s picture

I guess this http://drupal.org/node/208023 means this can be closed now? Have to try it.

drumm’s picture

Status: Needs review » Closed (duplicate)