Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with dynamic data, numbers are not being sorted correctly (VueJS) #187

Open
maqboolkhan opened this issue Apr 28, 2020 · 3 comments

Comments

@maqboolkhan
Copy link

I have a table which is Vue component and its getting data from realtime Firebase this lib is working fine for all other fields (馃憤 for really nice and simple lib) but i ran into a weird issue that number's column is not being sorted correctly.

Kapture 2020-04-28 at 13 16 21

What could be the possible reason?

TIA

@sunnyguan
Copy link

sunnyguan commented May 23, 2020

Use number sorting rather than strings.
<th data-sort-method='number'>Version</th>
Refer to demo for more info: http://tristen.ca/tablesort/demo/

@maqboolkhan
Copy link
Author

@sunnyguan thanks for your reply. I tried but did not work

@moseslecce
Copy link

Would you be able to post a jsfiddle example showing it not working?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants