Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 3 of 3

Thread: sort by manufacturer and then by product

  1. #1
    jonath6 is offline Junior Member
    Join Date
    May 2011
    Posts
    25

    Default sort by manufacturer and then by product

    I need to sort by manufacturer and then by product when clicking on a browse department item. I know there is aspdnsf_GetProducts that can be changed, but I don't know where or how. Thank you. Jonathan

  2. #2
    ASPAlfred is offline Senior Member
    Join Date
    Nov 2007
    Posts
    2,244

    Default

    First off, you need mssql management studio to access your DB and open Programmability -> Store Procedure folder, click the (+) and you'll see aspdnsf_getproducts stored proc. Open/Modify and scroll down to the bottom, from there you'll see:

    ORDER BY pf.rownum (above the IF @StatsFirst <> 1)

    try changing that to:

    ORDER BY m.Name, p.Name

    Make sure to make a backup first before doing anything. Thanks

  3. #3
    jonath6 is offline Junior Member
    Join Date
    May 2011
    Posts
    25

    Default

    Thanks. Worked Perfectly.