Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bruce Clark 56 posts 80 karma points
    Apr 27, 2011 @ 23:07
    Bruce Clark
    0

    Sort Desc not working in 4.7.0

    I can get the package installed, it works fine with Asc as the value but no matter what Desc will not work. It always sorts Asc. I've tried specifying a document type, not specifying, trying DESC desc, restarting the server, deleting umbraco.config, etc. Nothing seems to make this work. Has anyone else tested this plugin in 4.7 and had the same issue?

    Thanks so much for an awesome plugin. Hope this can be fixed soon. 

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Apr 27, 2011 @ 23:51
    Tom Fulton
    0

    Hi Bruce,

    I haven't had a chance to fully test on 4.7 yet, but there don't seem to be any issues.

    I can't seem to reproduce the Desc sorting issue.  Can you tell me what type of sorting you are doing (ie Alpha/Numeric/Date) and on what type of field?  Maybe post your config file also?

    So even when you specify order="Desc", it still sorts items, just in ascending order? 

    Also, if you have a chance can you check your umbracoLog table for any errors?

    Thanks,
    Tom

  • Bruce Clark 56 posts 80 karma points
    Apr 28, 2011 @ 00:12
    Bruce Clark
    0

    Sure thing. Thanks for the quick response! This is in relation to soring by Date, and yes, it does sort, it just doesn't sort by Desc. Here's the config:

    <?xml version="1.0"?> <documentSorterConfig>   <add docTypeAlias='NewsItem' field='newsDate' type='Date' order='Desc' /> </documentSorterConfig>

    edit: lost the code, sorry, here it is again.

    As I mentioned I tried restarting the site, removing the docTypeAlias, removing umbraco.config, etc. I'm not sure how quick this should take place I make a config change. Also, we've used this on a bunch of projects and up until now haven't had any issues so it does seem like somethign that is recent. 

    Thanks again for taking a look! Cheers.

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Apr 28, 2011 @ 14:17
    Tom Fulton
    0

    Hi Bruce,

    Very strange, I still can't seem to reproduce on my end.  With your config the NewsItems are sorting correctly for me, from latest to earliest.  Are you using any other packages that might be conflicting, perhaps DateFolders (which I think does it's own sorting)?

    -Tom

  • Bruce Clark 56 posts 80 karma points
    Apr 28, 2011 @ 17:53
    Bruce Clark
    0

    Hey Tom, 

    Thanks for your help with this. It's really really weird but it's fixed now. Basically after a server restart (for another reason) the sorting seems to be working. I suppose it could have been a cache issue but I tried it in a few different browsers and litreally did try restarting the site, etc. Very odd! 

    I wish I had snagged a screen cap of it so I could show you what it was doing. That said, it is working now. We use this frequently so I'll keep an eye out and see if I can snag details if it pops up again. 

    Once again, thanks!

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Apr 28, 2011 @ 17:56
    Tom Fulton
    0

    Glad it's working!  I meant to mention, when you make changes to the .config file you only need to touch the web.config for the changes to apply.

Please Sign in or register to post replies

Write your reply to:

Draft