Skip to content

Bug in alphanumeric sorting of tables? #26

Open
@auton1

Description

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.

Activity

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions