[editing] Sort entities by type because MB server expects type0=url and
type1=work and rejects the other way.