Drupal 6 : List nodes in alphabetical order

I want the taxonomy/term/tid pages list nodes in alphabetical order in drupal 6. By default, nodes are listed in order of the created time. I knew I can achieve my goal with Views module, but it was a small project, so I tried a duty ( and simple) way. Here is how:

open modules/taxonomy/taxonomy.module file, and search for

function taxonomy_select_nodes($tids = array(), $operator = 'or', $depth = 0, $pager = TRUE, $order = 'n.sticky DESC, n.created DESC')

change the code to:

function taxonomy_select_nodes($tids = array(), $operator = 'or', $depth = 0, $pager = TRUE, $order = 'n.sticky DESC, n.title')

and just save it. It is that simple.

26 Jan21:10

original and proposed code

By Anonymous (not verified)

original and proposed code change are both the same.

Post new comment

The content of this field is kept private and will not be shown publicly.