sorting through object