[buddypress-trac] [BuddyPress Trac] #6047: More general sorting function

buddypress-trac noreply at wordpress.org
Wed Nov 26 18:21:43 UTC 2014


#6047: More general sorting function
--------------------------+---------------------------
 Reporter:  boonebgorges  |       Owner:  boonebgorges
     Type:  enhancement   |      Status:  closed
 Priority:  normal        |   Milestone:  2.2
Component:  Core          |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |
--------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"9191"]:
 {{{
 #!CommitTicketReference repository="" revision="9191"
 Introduce `bp_sort_by_key()`.

 A companion for `bp_alpha_sort_by_key()`, this function allows arrays of
 objects or associative arrays to be sorted according to one of their keys/
 properties - a kinda-sorta version of `wp_list_pluck()` for sorting.
 Supports
 numeric as well as alphabetical sorts.

 `bp_alpha_sort_by_key()` is converted to a wrapper of the new function.

 Fixes #6047. See #5669.
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6047#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list