Fixed sorting by type-index-name for objects and events