PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old March 3rd, 2012, 10:06 AM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Jun 2010
Posts: 15
Sorting Title Numerically

I have a silly question. Why are my photos being sorted by the first number rather than a consecutive set of numbers? Example, I've got all my file names beginning with a number and they are currently being sorted like this: 1, 10, 11, 12, 1453, 18, 2, 21, 32, 37, etc. I'd rather it sort like this: 1, 2, 10, 11, 12, 18, 21, 32, 37, 1453, etc.

Here's an example of what I'm talking about. Thanks!

aerovacworld.com/gallery/showgallery.php/cat/509
STL7997 is offline   Reply With Quote
Old March 3rd, 2012, 11:14 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,945
Simply put this is how the mysql sort on that field works.

It goes through the title doing an alphanumeric sort.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old March 3rd, 2012, 12:10 PM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Jun 2010
Posts: 15
Hmmm, bummer. Thanks for the reply though.
STL7997 is offline   Reply With Quote
Old March 3rd, 2012, 01:20 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,945
Yeah that is simply how mysql seems to do it. Basically any sort in our program is a sort done ASC or DESC on a specific field in the photos table. So title looks something like this

ORDER BY title ASC

This will sort titles by 0-9 and A-Z so basically how the mysql sort works 10 is before 2. The sort is always done on the first character and then if first character matches it moves to the second character so 1459 would also be before 148.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Title Tag control - duplicate title tags Barrett Photopost Pro How Do I...? 5 January 12th, 2009 07:13 PM
<title>Site Name - Main Index</title> blankoboy Classifieds How do I...? 8 May 19th, 2008 10:42 AM
Sorting issue davide169 Installs and Upgrade - vBulletin 3.0.X 1 June 22nd, 2005 04:49 PM
Sorting by distance h2ojunkie Classifieds How do I...? 1 March 18th, 2005 07:09 AM
Sorting? Mellow Bugs From 1.0.0 4 January 6th, 2005 03:57 PM


All times are GMT -5. The time now is 06:50 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0