When multiple terms are imported (using the individual fields or the textarea), the terms are added alphabetically, and not in their order as they are added, so the user's desired order is lost. (If the user wanted the terms to be listed alphabetically, he could perform that ordering before importing them, or sort them alphabetically using the core Taxonomy module's functionality.)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Taxoman’s picture

Version: 7.x-1.0-beta2 » 7.x-1.x-dev
Priority: Normal » Major

This is quite important, IMO.

mh86’s picture

Title: Terms added alphabetically, out of order » Add option to weight terms according to the input order
Category: bug » feature

I don't want to modify the term weight in that case. People expect it to be '0' when they add a new term.
Furthermore the core interface behaves the same way, e.g. you add A, C, B -> you get A, B, C. Still you can manually re-order them.

Nevertheless I can think of an additional option on the term add interface (e.g. a checkbox with either import alphabetically or in input order) and thus mark this issue as feature request.

lahode’s picture

Hi,

Here is a tiny patch, that add the option to order the imported terms according to there initial order

Cheers

IamOnStage’s picture

Patch works good for me, thank you!

interdruper’s picture

Status: Active » Reviewed & tested by the community

It works fine, thanks!

aurelianzaha’s picture

patch #8 from a similar issue
was merged with the MR https://git.drupalcode.org/project/taxonomy_manager/-/merge_requests/11

aurelianzaha’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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