diff --git a/pkg/coredata/connector.go b/pkg/coredata/connector.go index 5090e0e84..2aba7123a 100644 --- a/pkg/coredata/connector.go +++ b/pkg/coredata/connector.go @@ -94,6 +94,8 @@ func (c *Connector) CursorKey(orderBy ConnectorOrderField) page.CursorKey { switch orderBy { case ConnectorOrderFieldCreatedAt: return page.CursorKey{ID: c.ID, Value: c.CreatedAt} + case ConnectorOrderFieldName: + return page.CursorKey{ID: c.ID, Value: c.Name} } panic(fmt.Sprintf("unsupported order by: %s", orderBy))