EntityItem::operator< - fix sorting by ID (local entities (big numbers) were not sorted properly + optimize sorting by name (which is still broken ATM when sorting order is changed).