Double Sort?

Requests, feedback, and general discussion about WoWRoster
DO NOT post topics about WoWRoster AddOns here!

Double Sort?

Postby Bruhan » Wed Jul 05, 2006 4:59 pm

Greetings everyone.

I'm running v1.6 and I have a question regarding sorting. I'd like to view my roster by class, then sort again on guild rank before sorting alphabetically by name.

Basically, the heirarchy I'd like displayed for a given class is:

GM (if any)
Officer (if any)
Class Leader
Members
Initiates
Alts
Inactives

(yes, the ranks are in that order already in the guild)
Bruhan
WR.net Apprentice
WR.net Apprentice
 
Posts: 1
Joined: Wed Jul 05, 2006 4:55 pm

Double Sort?

Postby ThePrimaryDave » Wed Jul 05, 2006 10:51 pm

I'm almost certain that there is no way to sort by multiple columns in 1.6. I don't even think 1.7 supports it, but I could be wrong (at least they figured out a good way to have a default sort).
ThePrimaryDave
WR.net Apprentice
WR.net Apprentice
 
Posts: 64
Joined: Wed Jul 05, 2006 9:45 pm
Location: Central Coast of CA

Re: Double Sort?

Postby PleegWat » Wed Jul 05, 2006 11:04 pm

Edit index.php to change the secondary sortings with each collumn.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Re: Double Sort?

Postby ThePrimaryDave » Thu Jul 06, 2006 4:28 am

Oh...right...yeah, you can modify the code to do it. I was thinking just of standard config stuff. :blackeye:
ThePrimaryDave
WR.net Apprentice
WR.net Apprentice
 
Posts: 64
Joined: Wed Jul 05, 2006 9:45 pm
Location: Central Coast of CA

Double Sort?

Postby joehail » Fri Jul 14, 2006 7:59 pm

I dont' see in the 1.7 index.php where to make a secondary sort entry, can someone point me to the right area? I would like to sort mine as follows
level, class, name
I had 1.6 doing this, but can't figure out how to make 1.7 do it :)

Thanks
Image
User avatar
joehail
WR.net Journeyman
WR.net Journeyman
 
Posts: 103
Joined: Tue Jul 04, 2006 4:54 pm
Location: Cincinnati, Ohio USA

Double Sort?

Postby ThePrimaryDave » Fri Jul 14, 2006 9:53 pm

It's in memberslist.php, not index.php

Code: Select all
/************************
 * Set up the default secondary sorting
 * This is what everything will be sorted by after the first sort specified in the arrays
 * DO NOT leave this blank, at least one sort must be here
************************/
$always_sort '`members`.`level` DESC, `members`.`name` ASC';
 
ThePrimaryDave
WR.net Apprentice
WR.net Apprentice
 
Posts: 64
Joined: Wed Jul 05, 2006 9:45 pm
Location: Central Coast of CA

Double Sort?

Postby joehail » Sat Jul 15, 2006 2:15 am

exactly what I needed thank you Dave. :)
Image
User avatar
joehail
WR.net Journeyman
WR.net Journeyman
 
Posts: 103
Joined: Tue Jul 04, 2006 4:54 pm
Location: Cincinnati, Ohio USA


Return to General Support & Feedback

Who is online

Users browsing this forum: No registered users and 0 guests

cron