Hi,

I created a field of type Term Reference in Webform and picked a vocabulary to use. Field type is Select List.
Now I want for terms in that select list to sort by their Weight in the vocabulary. Is it possible? If not, can this feature be introduced?
Moreover, I think this should be a default behavior for sorting terms. What do you think?

Thank you,
Alexander

Comments

Chewits created an issue. See original summary.

sumitmadan’s picture

Cool. Please submit the patch if you can. Otherwise will work ASAP.

Chewits’s picture

Assigned: Unassigned » Chewits

I'll try to fix this.

Chewits’s picture

Hi Sumit, could you please have a look at the patch? It seems to work for me.

sumitmadan’s picture

Status: Active » Needs work

@Chewits Thanks for the patch. Please let the default value be name for sort. Just add the weight value Sort by column. Also move issue to needs review after you add a patch.

Chewits’s picture

Status: Needs work » Needs review
StatusFileSize
new665 bytes

Please review.

sumitmadan’s picture

Assigned: Chewits » Unassigned
Status: Needs review » Fixed

Thanks @Chewits. I have pushed the code to 7.x1.x branch. Will create a new release after checking few more issues.

Status: Fixed » Closed (fixed)

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