added sort function for user list