These forums are read-only and considered to be an archive. Please use the new Community for future interaction and posts.

ASSISTANCE PLEASE: Help with Sorting

Hi thanks for creating such a program I'm trying to learn how to do directory style applications and I have a problem.

I have pranced around the entire code (default.asp and config.asp) for Webex free to find a way to sort the: 
----------------------------
Name  " Size "  Type "  Modified 
----------------------------
I need help with the default.asp file to be able to sort by newest (last) item uploaded first.
PLEASE HELP
Noble Ackerson 3/26/2003 5:36 PM
now I know there are no sorting features with it .. i just want to know where i can hard code an 'orderby-like' statement for outputs
Noble Ackerson 3/26/2003 5:42 PM
--------------
i know it has something to do with this part of the script thats all i can do to help sorry, I'm curious about this too does someone know how?
--------------


<%
        rowType = "lightRow"
    End If

    listed = 0
    If (objFolder.subfolders.Count + objFolder.files.Count) = 0 Then
        ' Do nothing when error occurs
    Else
        For each item in objFolder.subfolders
            If showHiddenItems or not item.Attributes and 2 Then
                listed = listed + 1
%>
joctavion 3/27/2003 9:58 AM
Hi,
I can tell you that the easiest way is using ADODB.Recordset object for sorting. I am sure you can find information on the net about this subject.
Cem Alacayir 3/31/2003 4:42 PM
thanks man... i've checked a bunch of tutorials and snippets and still no luck.. any ideas on how i can make it work with ADO?
noble 5/30/2003 2:15 PM
whats up with this... why cant we sort... does anyone know how to easily sort the columns for this thing???

Or

How can we have the files sort by newest(last modified) instead of by alpha.

I'm planning on using both the free and the pro.. please help
ASP_logix 11/3/2003 4:30 PM