Sorting by Date or Number under certain circumstances not working

Created on 29 July 2010, almost 14 years ago
Updated 17 January 2024, 5 months ago

I found that sorting is wrong for numbers and dates. I think this is because views template adds several spaces after the value, and DataTables thinks that it is text. This can be solved by editing template datatables-view.tpl.php, making td part on one line:

<td class="views-field views-field-<?php print $fields[$field]; ?>"><?php print $content; ?></td>

πŸ› Bug report
Status

Closed: cannot reproduce

Version

2.0

Component

Code

Created by

πŸ‡·πŸ‡ΊRussia dpopov

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡©πŸ‡ͺGermany diqidoq Berlin | Hamburg | New York | London | Paris

    Apart from my last comment I cannot except such comments like made by eule in #9. Some users still seem to think all in life is free and you can still make a respectless complain if something is not working like expected out of the box. Drupal contrib modules is community work and the user did not add any useful help to solve the issue but to slap in others faces.

    Again, sortin gby date depends on many things not in scope of this project depending on how dates get rendered for sorting.

    Due to upcoming EOL of Drupal 7 I set it to Closed. Thanks for taking the time to report and all the work on this! Read more about here: https://www.drupal.org/about/drupal-7/d7eol/partners β†’

    Feel free to open a new issue with a proper report and patch to solve the issue if it is in the scope of this project.

Production build 0.69.0 2024