Trying to sort my list by date

Home \ forums/topic \ Trying to sort my list by date

Support Home Page Forums Joomla Software Easy Folder Listing Module Trying to sort my list by date

This topic contains 6 replies, has 2 voices, and was last updated by  tchoidesign 8 years ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #217

    tchoidesign
    Participant

    I’m using easy folder module on a joomla website to display pdf’s as a list.

    I would like to sort my list by date but instead of sorting it by year then month then day it sorts it by what the date actually displays (i.e. 16 December 2011 THEN 13 October 2011 THEN 12 October 2011 THEN 12 December 2011)

    you can see it at:

    http://new.carbontradexchange.com/

    It’s in the “CTX Media” box in the middle – why is “12 October 2011” not first?

    #1398

    Michael Gilkes
    Keymaster

    @tchoidesign. Thanks for your post. That’s interesting. Looking at it now, I realize that the reason it does this is because I format the date before I sort it. To fix it, I will have to sort it first, and then format the date. I will set this as a priority for the next release, which should be in a couple of weeks.

    If you want to fix it now, and you understand the basics of PHP, then I can tell you what to do to fix it. Let me know.

    #1399

    tchoidesign
    Participant

    Thanks Michael for your reply. I’ve got little knowledge in php but i’d like to give it a try anyway, if you could tell me what to do that would be great!

    #1400

    Michael Gilkes
    Keymaster

    @tchoidesign. Ok, I am on the forum late tonight. I haven’t tested this code, but it should work. You will be editing code in the helper.php file.

    STEP 1: Go to around line 67, and you will see:

    Change it to:

    STEP 2: Go to line 220, and you should see:

    Change it to:

    STEP 3: Go to line 268, and you should see:

    Change it to:

    That’s it!

    #1401

    tchoidesign
    Participant

    Hey Michael, I’ve followed your steps and even did it twice to make sure but I always end-up with a white screen when refreshing the page…

    When is the update coming out?

    #1402

    Michael Gilkes
    Keymaster

    @tchoidesign. i must apologize for the syntax errors in the code in the above post. I corrected them. Please try again. I just tested it. It works now.

    #1403

    tchoidesign
    Participant

    Thanks a lot for your help Michael… It works!

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

The topic ‘Trying to sort my list by date’ is closed to new replies.