sorted the actor display depending on data.