sort ascending or descending

Got an idea, post it here

sort ascending or descending

Postby gamejester on Mon Dec 06, 2004 7:22 pm

I want to be able to sort a category either ascending or descending.

I have added a feature whereby I date stamp a new file when I rename (via scripts) then import this to xlobby. I want to be able to sort the list descending so the newest files appear first.

Can we add feature.
gamejester
 
Posts: 131
Joined: Mon Jun 21, 2004 9:20 am

Postby gamejester on Fri Dec 17, 2004 6:29 pm

Does no one else find this interesting, think of the possibilities?

OK, what about if xlobby automatically added a Date field to each imported record with today’s date, you can then sort each list descending by Date and see your newly added, films, TV shows, Albums, etc...

come, add some votes!
gamejester
 
Posts: 131
Joined: Mon Jun 21, 2004 9:20 am

Postby gamejester on Thu Jan 13, 2005 12:31 pm

Still need this.
Steve, can you just implement a - in the category sort to indicate descending?
I really want to see my newest imports at the top of my list.
gamejester
 
Posts: 131
Joined: Mon Jun 21, 2004 9:20 am

Postby lar282 on Thu Jan 27, 2005 10:24 am

I really want this 2.


//Lasse
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden

Postby stevenhanna6 on Wed Feb 02, 2005 1:48 am

ok lets try this, to the begining or the sort order you will add

-1:

so if you want everything sorted by title in reverse order it would be

-1:title

I didnt test it but it should work.

http://www.xlobby.com/xlobby2.zip
stevenhanna6
 
Posts: 904
Joined: Tue Feb 18, 2003 10:39 am
Location: Ontario, Canada

Postby lar282 on Wed Feb 02, 2005 7:53 am

YES.....

Thank u Mr xlobby


//Lasse
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden

Postby gamejester on Sat Feb 05, 2005 10:28 am

Thanks Steve,

It's getting there, does not fully function though. Putting the -1: infront of an item to reverse the sort order, reverses the sort order for all items:
Hereis the sort order I am using.

-1:showDate:name:showEP:showTitle

What I want to happen is to reverse the sort order on showDate, but keep the sort order forward on name, showEp and showTitle. Also, if an item specified in the sortdoes not exist in a record it should always be at the back.

Result: All new shows with the closest date to today at top of list, shows with no date towards the bottom.
gamejester
 
Posts: 131
Joined: Mon Jun 21, 2004 9:20 am

Postby stevenhanna6 on Sun Feb 06, 2005 5:48 pm

ok I understand.....I have to think of this one for a bit.

You wouldnt happen to have a xml database file I could use for testing? if so email it to me.

mailto:steve@xlobby.com
stevenhanna6
 
Posts: 904
Joined: Tue Feb 18, 2003 10:39 am
Location: Ontario, Canada

Postby gamejester on Mon Feb 07, 2005 11:01 am

Sure,
I will upload the skin, example dirs and db's to my area on the server and email you with the details this evening.

Thanks Steve.
gamejester
 
Posts: 131
Joined: Mon Jun 21, 2004 9:20 am

Postby dalanik on Mon Feb 07, 2005 2:54 pm

Speaking of sort, sorry for being such an ignorant, but is there a way to sort category by field? I.e. sort movies by year or by director etc.... ??
dalanik
 
Posts: 885
Joined: Mon Apr 19, 2004 12:35 pm
Location: Prague, Czech Republic

Postby gamejester on Mon Feb 21, 2005 9:06 am

All sorted now with latest EXE (19/02/2005).

You can sort either ascending or descending using the -1: before the sort item, and in either case if an item is not matched it is added to the bottom of the list.

thanks Steve.
gamejester
 
Posts: 131
Joined: Mon Jun 21, 2004 9:20 am

Postby gamejester on Mon Feb 21, 2005 7:59 pm

Steve has also implemented a new method for me to set the sort order on the fly, it is called

category:set sort order

I have tested it and it works well.
You have to call it before a method that manipulates a category to see the change to the displayed list (obviously).

For me I database category called TVseries, 1 view on this cat is shows all episodes sorted by date, the other view is a filtered list of all the episodes in a particular series, this is sorted by episode number.

Thanks Steve.
gamejester
 
Posts: 131
Joined: Mon Jun 21, 2004 9:20 am