sorting in entity ui gen fix