Edges sorted in edge representation, query tables better name