I think it would make more sense when seeing buddy lists if they were sorted alphabetically. This could be achieved by simply adding a 'ORDER BY u.name' to the SQL statement in the buddylist_get_buddies() API function.