Re-order user organizations

What does this MR do and why?

Fixes a bug for a select few team members helping to test organizations. This MR will order a users' organizations by the organization_id. This ensures that the default organization (id=1) is always returned first. Referencing an organization other than the default organization is considered experimental for now.

Query Plan

New query: https://console.postgres.ai/gitlab/gitlab-production-main/sessions/30794/commands/95630

Old query: https://postgres.ai/console/gitlab/gitlab-production-main/sessions/30794/commands/95628

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Closes !162802 (merged)

Edited by Alex Pooley

Merge request reports

Loading