Skip to:

Sort Alphabetically function

  • Is there a “sort-alphabetically” function that can be used for the “Members Widget” so that the widget displays the users sorted from A to Z based on first name… Similar to “My Friends – Alphabetically”

    Looking for a function that I can use in place of say “get_newest_users()” in the code below

    <?php $users = BP_Core_User::get_newest_users( $options[\’max_members\’] ) ?>

    Checking to see if there’s any function already there that I can call, rather than create a new one . Any help is appreciated.

    Here’s a screenshot of what I’m working on (local intranet) and where it could be useful on the homepage.

    And oh Yes, that’s a buddy press site… true and true. I’m in the beginning stages of developing well designed FREE buddypress themes.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Created my own function… loosely based on the function below.

    function get_newest_users( $limit = null, $page = 1 )

    The new name of my function is get_alpha_users

    function get_newest_users( $limit = null, $page = 1 )

    Let me know if you need the code.


    I meant

    function get_alpha_users( $limit = null, $page = 1 )

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sort Alphabetically function’ is closed to new replies.
Skip to toolbar