Sorting error

Sorting error

somma_mattsomma_matt Posts: 20Questions: 5Answers: 0

Hello!

Can anyone tell what's going wrong with my datatable? The columns are not sorting correctly. It looks like it's sorting by the first 2 numbers but isn't going past that. ie 98 is showing up before 9700

mattsomma.com/ilt/blanks2.html

Thanks!

This question has an accepted answers - jump to answer

Answers

  • DirceuNazarethDirceuNazareth Posts: 44Questions: 1Answers: 12
    Answer ✓

    It is typically because it is ordering as string instead of number. Take a look in the column type columns.type

  • somma_mattsomma_matt Posts: 20Questions: 5Answers: 0

    that worked, thank you! I figured it was automatically catching onto it just being a number

This discussion has been closed.