sorting after objects are added