I have an array:
Array ( [0] => stdClass Object ( [user_id] => 1 [ID] => 1 [user_login] => admin [display_nam
Take a look at following article. It does describe how to use usort() and also describes how to use create_function() so that you can use single function to sort on different fields (with required direction asc or desc).
usort()
create_function()
asc
desc
http://phpave.com/sorting-associative-array-specific-key/