Fix sorting of objects in editor.