Opened 3 years ago

Closed 3 years ago

#840 closed defect (fixed)

Sort categories alphabetically

Reported by: isaackeyet Owned by:
Priority: minor Milestone: 2.8
Component: Compose Version:
Keywords: Cc: ercoli@…

Description

As brought up here:

http://twitter.com/#!/SteveReynolds/status/55300386793336833

Categories should be sorted alphabetically to make it easier to browse through them.

Change History (6)

comment:2 Changed 3 years ago by daniloercoli

in [1924] I added a first patch for this issue. I've not used an object oriented approach, since i don't want change the Category class. I used sortedArrayUsingFunction using 2 copy of the same function in 2 files. We should change the code to use the same function in both files.

comment:3 Changed 3 years ago by daniloercoli

  • Cc ercoli@… added

comment:4 Changed 3 years ago by koke

Looked at [1924], probably better to use sort descriptors:
http://stackoverflow.com/questions/1301285/sorting-tomany-relationship-set-in-core-data

We could add a sortedCategories method to Blog, not sure if we should sort only by name or by parent/name.

comment:5 Changed 3 years ago by daniloercoli

method added in [1926]. No need to sort using the "parent-name/name" tuple.

comment:6 Changed 3 years ago by daniloercoli

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.