Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • thesdhotel Friend
    #1048058

    I think I figured out it happens for Dates which have UNIX dates with one less digit (when it goes from 1000000000 to 999999999 ), so for dates before 8 September 2001.

    Luna Garden Moderator
    #1048373

    Hi,

    Thanks for report. I have passed this issue to the developer. He’ll check and reply back to you later.

    thesdhotel Friend
    #1050391

    Hello, any news?
    Thanks 🙂

    Mo0nlight Moderator
    #1051310

    Hi

    Edit the file : components/com_jamegafilter/assets/js/libs.js

    Look for:

                    // helper with Uppercase.
                    if (v1 != null && typeof v1 == 'string') // make sure it's string
                        v1 = v1.toLowerCase();
                    if (v2 != null && typeof v2 == 'string') // make sure it's string
                        v2 = v2.toLowerCase();
                    // end Helper with Uppercase.

    Add this under.

                    // helper with number.
                    if (typeof v1 == 'string' && v1.search(/^\d+$/) !== -1) {
                        v1 = parseInt(v1);
                    }
                    if (typeof v2 == 'string' && v2.search(/^\d+$/) !== -1) {
                        v2 = parseInt(v2);
                    }
                    // end helper with number

    This fix will be updated in the next release version.

    • This reply was modified 6 years, 9 months ago by  Saguaros.
    thesdhotel Friend
    #1051475

    Awesome it worked!

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 3 voices, and was last updated by  thesdhotel 6 years, 9 months ago.

The topic ‘Wrong Ordering Bug when Sorting by a Date Field for Dates before 2000’ is closed to new replies.