eAuction
  Not just another Perl script
Google
Welcome, Guest. Please Login or Register


If you use eAuction a lot and like it or if you make money from eAuction or from eAuction-related activities ...
then the project asks you for a donation in favor of the further development.



The forums are protected by
AccessControl
(written by Dieter Werner)
Click here if you want to check your IP against the most important RBLs of the net.
Click here in order to visite the AccessControl forums.


<< Visit the international e Auction Marketplace >>
Buy and sell PC and Consumer Electronic components






  HomeHelpSearchLoginRegister
 



Pages: 1 2 
How do I get the Categories to Change Order? (Read 123 times)
simcoe
eAuction User
**
Offline



Posts: 5
Canada
Gender: male
How do I get the Categories to Change Order?
01/27/07 at 17:36:51
 
Here is another How Do I?

I want to have the categories in a particular order.
It will be an art auction site and I want Paintings, Drawings, Sculpture, Prints, Other

It seems to alpha-sort them.  

I tried to trick the sys with letters or numbers in front of the categories and that doesn't work.

sacredeye.ca
Back to top
 
 


Advertising
View Profile   IP Logged
Dieter Werner
Administrator
*****
Online

Dipl. Paranoiac ®

Posts: 1162
Germany
Gender: male
Re: How do I get the Categories to Change Order?
Reply #1 - 01/27/07 at 18:25:40
 
You can use numbers ...
Code:
%category = (
   130	=> ['Audio & Video',   'Audio & Video',	        ],
   110	=> ['Computer',        'Computer',	        ],
   120	=> ['Electronics',	'Elektronik',	        ],
   100	=> ['Other Junk',	'Sonstiges',	        ],
);




and the sorted result will be:

Other Junk
Computer
Electronics
Audio & Video
Back to top
 
 

Multimedia file viewing and clickable links are available for registered members only!!  You need to Login or Register!!


Greetings from Germany
Dieter Werner




Advertising
View Profile | WWW   IP Logged
simcoe
eAuction User
**
Offline



Posts: 5
Canada
Gender: male
Re: How do I get the Categories to Change Order?
Reply #2 - 01/27/07 at 18:40:51
 
Dieter,
Thank You,
It worked perfectly. Smiley
Back to top
 
 


Advertising
View Profile   IP Logged
Pages: 1 2 


If you like eAuction, please Rate it.
If you don't like eAuction, please Rate it too.


1 is being poor and 10 is being excellent


EveryScript

ip-location


AccessControl - Members Only