Skip to content

"num" column type not working #52

@maxko87

Description

@maxko87

I have a number stored as a string in my collection. It's sorting the following way:

5
4
35
34
3
...

I'd like to sort them as numbers. Here's what I've tried -- none of the commented approaches fix this.

{
title: "Quantity"
data: "quantity"
# type: "num"
# sType: "numeric"
# mData: (obj, type) -> return parseInt(obj.quantity)
# mRender: (val, type, obj) -> return parseInt(val)
}

Any ideas what would work?

Metadata

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