Topic: Datatables, sort by number instead of alphabetically

max rioux priority asked 2 years 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 2 years ago


Hi,

Currently you can only sort by number using JS. Here is the snippet https://mdbootstrap.com/snippets/standard/d-wajszczuk/3921983#js-tab-view. You just need to provide Number instead of String.

Keep coding,
Dawid


penguin28 priority answered 2 years ago


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



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Resolved

Specification of the issue

  • ForumUser: 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