From 57b5fe9e4610e45082548c3d5f277d58c6f5939d Mon Sep 17 00:00:00 2001 From: Arne Luenser Date: Thu, 7 Nov 2024 16:12:15 +0100 Subject: [PATCH] fix: order by --- persistence/sql/identity/persister_identity.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/persistence/sql/identity/persister_identity.go b/persistence/sql/identity/persister_identity.go index a2fb51a0d5ab..489b1fbb4360 100644 --- a/persistence/sql/identity/persister_identity.go +++ b/persistence/sql/identity/persister_identity.go @@ -755,7 +755,7 @@ func QueryForCredentials(con *pop.Connection, where ...Where) (credentialsPerIde ).LeftJoin(identifiersTableNameWithIndexHint(con), "identity_credential_identifiers.identity_credential_id = identity_credentials.id AND identity_credential_identifiers.nid = identity_credentials.nid", ).Order( - "identity_credentials.id ASC", + "identity_credential_identifiers.identifier ASC", ) for _, w := range where { q = q.Where("("+w.Condition+")", w.Args...)