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

Bug in alphanumeric sorting of tables? #26

Open
auton1 opened this issue Mar 16, 2016 · 0 comments
Open

Bug in alphanumeric sorting of tables? #26

auton1 opened this issue Mar 16, 2016 · 0 comments

Comments

@auton1
Copy link

auton1 commented Mar 16, 2016

There appears to be a small bug, presumably in the javascript, which means that alphanumeric columns in tables cannot be sorted when using Nozzle. Here is a small test example.

library("Nozzle.r1")
num = c(1,2,3,2.1)
txt <- c("aada","aaba", "aaca","aaaa")
alphanum <- c("aad1", "aab2", "aac3", "aaa4")
d <- data.frame(numeric=num, text=txt, alphanumeric=alphanum)
report <- newCustomReport("Alphanumeric sorting test")
t <- newTable(d, "Test table")
report <- addTo(report, t)
writeReport(report, "test")

In the html output, it is possible to sort the "numeric" and "text" columns, but the "alphanumeric" column does not sort correctly.

Any insight gratefully received.

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

No branches or pull requests

1 participant