Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryWhereWhere's the sort-order?
Previous
 
Next
New Post
9/26/2006 9:26 AM
 

Rob,
You can't currently configure the sort order ( ascending vs descending ) but to 'hard-code' the change, you can simply modify the grmGetRepositoryObjects stored procedure. Look for the following...

ORDER BY
  CASE @sSort
    WHEN 'Name' THEN a.Name
    WHEN 'Author' THEN a.Author
  END ASC,

Change it to this...

ORDER BY
  CASE @sSort
    WHEN 'Name' THEN a.Name
  END DESC,
  CASE @sSort
    WHEN 'Author' THEN a.Author
  END ASC,

If this is the only repository on your site and you don't mind that when the items are sorted by Name ( Title ) that they will always be sorted in reverse order, then this should do it.

 
New Post
9/26/2006 4:40 PM
 

It is on a multi-portal server so I'll have to leave it until it becomes a standard part of the module... and until I learn how to compile a module

But, thanks in any case for the excellent information. Someone here is bound to find it handy.

Regards,
Rob

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryWhereWhere's the sort-order?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out