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

Alter order of TRS ranges with decimals #203

Open
nathankota opened this issue Jan 9, 2023 · 2 comments
Open

Alter order of TRS ranges with decimals #203

nathankota opened this issue Jan 9, 2023 · 2 comments
Labels
low priority map tools navigation etc for the map
Milestone

Comments

@nathankota
Copy link
Contributor

Put ranges with decimal places in ascending numeric order. For example, 14.5W should be after 14E and 14W:

image

@nathankota nathankota added map tools navigation etc for the map low priority labels Jan 9, 2023
@nathankota nathankota added this to the Post-MVP Enhancements milestone Jan 9, 2023
@steveoh
Copy link
Member

steveoh commented Jan 9, 2023

I chose to use https://www.npmjs.com/package/natural-compare-lite. If you would like a specific order please tell me how you want it to work.

@nathankota
Copy link
Contributor Author

Based on the package description:

Compare strings containing a mix of letters and numbers in the way a human being would in sort order. This is described as a "natural ordering".

It seems like it would put values with a .5 after the preceding whole numbers in the list; or the "ascending numeric order" referred to in the original comment.

This is a low priority at the moment, so don't do anything yet, but I think it should be:
[whole number] E (e.g. 14 E)
[whole number] W (e.g. 14 W)
[whole number plus .5] E (e.g. 14.5 E)
[whole number plus .5] W (e.g. 14.5 W)
... and so on

@nathankota nathankota changed the title TRS ranges with decimals out of order Alter order of TRS ranges with decimals Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
low priority map tools navigation etc for the map
Projects
None yet
Development

No branches or pull requests

2 participants