Ticket #1302 (closed defect: fixed)

Opened 4 years ago

Last modified 2 years ago

Sort the_category() by cat name

Reported by: Denis de Bernardy Assigned to: 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 (0.7 kB) - added by rob1n on 02/20/07 06:01:03.

Change History

05/01/05 02:40:52 changed by Denis de Bernardy

  • Patch set to No.

02/15/07 22:15:34 changed by rob1n

  • 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 set to dev-feedback 2nd-opinion.

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

02/20/07 06:01:03 changed by rob1n

  • attachment 1302.diff added.

02/20/07 06:01:55 changed by rob1n

  • keywords changed from dev-feedback 2nd-opinion to has-patch.

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.

02/21/07 02:13:50 changed by markjaquith

  • status changed from assigned to closed.
  • resolution set to fixed.

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