hmc-whisk / jsLDA

A React based version of jsLDA with brand new features added on
Other
0 stars 0 forks source link

Numbers Sorted Weird in MetaData Bar Plot [Order By Data] #147

Closed theobayard closed 3 years ago

theobayard commented 3 years ago

This bar plot sorts numbers as strings which is great until we get a category with only numbers and 2 gets sorted as being higher than 19. The obvious solution is to check whether the string is a number and sort it as a number if it is, but then we get weird things like what happens if some items in a category are strings and some are numbers? Maybe checking the entire field to see if all the labels are numbers would be best? Would be frustrating if there were N/A or None entries that messed up the sorting of the entire category though.