Fix implementation for sorting tables in EI

No match.