Skip to content
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

Improve sort by source code so that it uses natural order #1137

Open
cdparra opened this issue Aug 8, 2019 · 0 comments
Open

Improve sort by source code so that it uses natural order #1137

cdparra opened this issue Aug 8, 2019 · 0 comments

Comments

@cdparra
Copy link
Member

cdparra commented Aug 8, 2019

See https://stackoverflow.com/questions/9173558/postgresql-order-by-issue-natural-sort
or https://pgxn.org/dist/pg_natural_sort_order/

Basically, we need the following:
P1, P4, P3, P1a, P4a, P1b

to be sorted as follows:
P1, P1a, P1b, P3, P4, P4a,

Currently it sorts like this:
P1, P3, P4, P1a, P1b, P4a

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

2 participants