Skip to content

Respecting the order of the columns specified in the "columns" parameter #279

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
abussani opened this issue Jul 11, 2017 · 2 comments
Open
Assignees

Comments

@abussani
Copy link

Hi
I have noticed that
http://localhost/api.php/categories?columns=name,surname
http://localhost/api.php/categories?columns=surname,name
gives the same result (the schema order is chosen)
Is this a bug?
Thanks for you work

@mevdschee
Copy link
Owner

mevdschee commented Oct 22, 2017

Thank you for reaching out. You asked about the column order.

Is this a bug?

You could call not respecting the order of the parameters a bug or respecting the order an enhancement.

@mevdschee mevdschee self-assigned this Oct 22, 2017
@mevdschee mevdschee changed the title Columns order in json Respecting the order of the columns specified in the "columns" parameter Oct 22, 2017
@mhlinder
Copy link

Aside from hard-coding indices, is there an approved way to determine the index / schema for a table?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants