Multiple types in one column
Multiple types in one column
Hi,
Has anyone done sorting on a column that has two different data types?
A column of mine has signed percentages (+0.01, -0.34, etc..) and it has enums (A, B, C, D).
I've added a plugin that uses a switch statement to sort out my enums, since it's not alphabetically ordered, it has specific values depending on the letter.
I also have a num-html part of the plugin i use for the numeric/percentage columns.
However, we now have a column that can have both, and i'm not sure if this is feasible to sort or not.
Basically, it would have to sort the decimals, ASC or DESC, then sort the ENUMs separately.
Has anyone done something similar to this?
Thanks,
Tsiqueira