glab repo list: --order field does not seem to work

Checklist

  • I'm using the latest version of the extension (Run glab --version)
    • Extension version: glab 1.55.0
  • Operating system and version: Windows 11 23H2 + Ubuntu 20.04.6 LTS (as WSL)
  • Gitlab.com or self-managed instance? self-managed instance
  • GitLab version (if self-managed) GitLab Enterprise Edition v17.1.8-ee
  • I have performed glab auth status to check for authentication issues
  • Run the command in debug mode (like DEBUG=true glab mr list) and attach any useful output

Summary

glab repo list: --order field does not seem to work

Environment

Ubuntu 20.04.6 LTS (as WSL):

  • OS: Linux 5.15.167.4-microsoft-standard-WSL2 x86_64
  • SHELL: /bin/bash
  • TERM: xterm-256color
  • GLAB: glab 1.55.0 (a806d3d2)

Issue also on Windows:

  • OS: Windows 11 - AMD64, 23H2
  • SHELL: Windows cmd
  • TERM: Conemu and Windows Terminal
  • GLAB: glab 1.55.0 (a806d3d2)

Steps to reproduce

I want to list all projects under a specific group, recursively, and order it by field "path_with_namespace".

Run this command:

glab repo list --include-subgroups --per-page 100 --order path_with_namespace --group san-tools-technology-platform/nro-devops/ci-cd

or with json output:

glab repo list --include-subgroups --per-page 100 --output json --order path_with_namespace --group san-tools-technology-platform/nro-devops/ci-cd

What is the current bug behavior?

Error message received:

$ glab repo list --include-subgroups --per-page 100 --order path_with_namespace --group san-tools-technology-platform/nro-devops/ci-cd
[git remote -v]
[git remote -v]
ERROR: GET https://mycompany.com/api/v4/groups/3452/projects: 400 {error: order_by does not have a valid value}

What is the expected correct behavior?

I guess I should get proper output which is ordered by field "path_with_namespace".

Relevant logs and/or screenshots

Error printout is above.

Possible fixes