Fixed the Array.sort warnings while sorting a listing containing different objects.