Topic: Datatables, sort by number instead of alphabetically

max rioux priority asked 1 year ago

Expected behavior

  1. 977908
  2. 882176
  3. 800423
  4. 99888
  5. 92875
  6. 90319
  7. 82306

Actual behavior

enter image description here

*Resources (screenshots, code snippets etc.)*I used the all html declaration and my numbers are declared like thatenter image description here

Dawid Wajszczuk staff answered 1 year ago


Currently you can only sort by number using JS. Here is the snippet You just need to provide Number instead of String.

Keep coding,

penguin28 priority answered 1 year ago

I am experiencing this same issue and have not been able to find a solution.

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • User: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 4.0.0
  • Device: Computer
  • Browser: Firefox
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No