Fixed sorting for the new object