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

Data file collation is wrong #11

Open
JG-QuarkNet opened this issue Apr 1, 2021 · 0 comments
Open

Data file collation is wrong #11

JG-QuarkNet opened this issue Apr 1, 2021 · 0 comments
Labels
bug Something isn't working PHP

Comments

@JG-QuarkNet
Copy link
Member

JG-QuarkNet commented Apr 1, 2021

Data files, identified by labels like 5.1, 10.6, etc., do not collate properly because they are strings, but we want to order them like integers. For example, the following listing might show up in the "Choose your data file" column of the index page:

10.7
10.8
10.9
100.1
100.11
100.12
100.13
100.14
100.15
100.16
100.17
100.18
100.19
100.2
100.3
100.4
100.7
100.8
100.9
25.1
25.2
50.41
50.42
50.43
50.44
50.45

Representing the data file format as 'N.M', these should be collated first by 'N' and then sub-collated by 'M'. Both should be treated as integers, so '10' should come between '9' and '11', not between '1' and '2'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working PHP
Projects
None yet
Development

No branches or pull requests

1 participant