Add description for EntityRepository#getSortedId()
Refactor AbstractConnection