When extracting the terms, another method is `taxonomy_get_tree`, which will order the items according to the weight in the taxonomy. This should be preferable to `entity_load` which returns a list alphabetically (or possibly by term id).

Comments

svenryen created an issue. See original summary.

svenryen’s picture

Status: Active » Needs review
StatusFileSize
new742 bytes

Patch solves the issue.

svenryen’s picture

A bug was found in the patch. Here's an updated version.

efpapado’s picture

Just a variable renaming, to be more consistent :)

  • efpapado committed 5de062e on 7.x-1.x
    Issue #3056378 by svenryen, efpapado: Sort taxonomy terms by tree...
efpapado’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

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