Ticket #1302 (closed defect (bug): fixed)

Opened 7 years ago

Last modified 5 years ago

Sort the_category() by cat name

Reported by: Denis de Bernardy Owned by: rob1n
Priority: low Milestone: 2.2
Component: Template Version: 2.1
Severity: trivial Keywords: has-patch
Cc:

Description

it would be nice if the_category() would list its output by name...

Attachments

1302.diff Download (667 bytes) - added by rob1n 5 years ago.

Change History

  • Patch set to No
  • Status changed from new to assigned
  • Summary changed from sort the_category() by cat name to Sort the_category() by cat name
  • Priority changed from normal to low
  • Owner changed from anonymous to rob1n
  • Version changed from 1.5.1 to 2.1
  • Milestone set to 2.2
  • Keywords dev-feedback 2nd-opinion added

I agree. It makes more sense. Or, at least an option of which column to sort by would be nice.

rob1n5 years ago

  • Keywords has-patch added; dev-feedback 2nd-opinion removed

Apparently it was doing a sort() on an array of objects, which does nothing. I added a new callback function and changed the sort() call to a usort(). Should work now.

  • Status changed from assigned to closed
  • Resolution set to fixed

(In [4903]) properly sort categories by name for the_category(). Props rob1n. fixes #1302

Note: See TracTickets for help on using tickets.