added sorting for users view