Default Listing Order in the All Groups View

Basic Installation and Setup.

Moderator: davidyin

Post Reply
technotravel
Members
Members
Posts: 1
Joined: Tue Apr 10, 2007 11:20 am

Default Listing Order in the All Groups View

Post by technotravel »

Hello. Great Software!!!! Works great... Thanks.

How can I have the names listed alphabetically in order by Last Name? Thanks for the help
User avatar
davidyin
Members
Members
Posts: 192
Joined: Wed Apr 27, 2005 10:50 pm
Location: Burnaby

Post by davidyin »

You can modify the default.asp as below:

1) open default.asp in Text Editor.

2) Find

Code: Select all

if orderby <> "userfirstname" and orderby <>"recordstatus" then
at about line 275
Replace it by
if orderby <> "userlastname" and orderby <>"recordstatus" then
3) Find
<%
if request.QueryString("groupid") <> empty then
if request.QueryString("locationid") <> empty then
orderbyname = "default.asp?order=userfirstname&locationid="&request.QueryString("locationid")&"&groupid="&request.QueryString("groupid")
else
orderbyname = "default.asp?order=userfirstname&groupid="&request.QueryString("groupid")
end if
else
if request.QueryString("locationid") <> empty then
orderbyname = "default.asp?order=userfirstname&locationid="&request.QueryString("locationid")
else
orderbyname = "default.asp?order=userfirstname"
end if
end if
%>
at about lines 426 to 440
Replace every
userfirstname
by
userlastname
4) Save it

Done.
Post Reply