Closed (fixed)
Project:
Webform References
Version:
7.x-1.6
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Jun 2015 at 13:45 UTC
Updated:
11 Sep 2015 at 13:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Poieo commentedLooks like adding
->orderBy('title', 'ASC')to
function _webform_references_get_node_list($types)in webform_references.node.inc will force sorting by node title. But, it may be better to give the option.
Comment #2
sumitmadan commentedYes, we should make sorting configurable. I will work on this soon.
See, if you can work on this. :)
Comment #4
sumitmadan commentedCommitted.
Comment #6
yaach commentedWhat about if we dont want to apply any sorting to the list? I want my taxonomy term list to appear in a specific order, but I can't now since by default it is sorted by id or title.
I think sorting should be an option, not set as default or mandatory.
Comment #7
yaach commentedComment #8
sumitmadan commentedIt is the default behavior or sorting of taxonomy terms. If we do not provide any sorting order by default it sorts by id.
Comment #9
yaach commentedOk so in other words, the order will depend on the "order" the terms are entered, one after another. It would be useful to keep the order you can choose by dragging and dropping the cross icons on a term list. If you want a term that was entered last to be displayed second, you just drag that term and drop in the second place, then save. That order should be kept into webform_references.
Comment #10
yaach commentedAny updates on this? ...from my last comment.
Comment #11
yaach commentedComment #12
sumitmadan commented@yalgeria,
There is another feature request for sort by weight option. See if you can work on it. Here is the link : #2564775: Sort Terms by Weight?
Comment #13
yaach commentedNevermind, think I was able to add the weight element to be sorted...easy fix..please take a look...now it works nice!.
Comment #14
yaach commentedComment #16
sumitmadan commentedPlease upload your patch to respective issue. Also I believe you are using old codebase, so please create patch against latest dev branch.
Comment #17
yaach commentedThis is what i am cloning from:
git clone --branch 7.x-1.x http://git.drupal.org/project/webform_references.git
Is that wrong?
Comment #18
sumitmadan commented@yalgeria Aaah!!! no. Sorry my bad. Its because of version selected in the issue. Also in future, please upload your patch on specific issue or if its not there then create one.
Comment #19
yaach commentedOk realized somebody else has the same patch on #2564775. Anyway. Thanks