initial sorting for object