Help - Search - Members - Calendar
Full Version: Search by State does not show city in alphabetical order
User Forums > Ultimate Locator v3 Support > General Support
lasik
When I search by state, I have about 30 stores in Florida.

The stores are not listed correctly in alphabetical order. They seem to be coming up in the order that I entered them in.

Is there anyway to correct this?

Thanks,
lasik
catlady
I am looking for the same thing: a way to alphabetize the listings, no matter when they have been entered. As it is now, the newest stores appear at the end and some people might not go through all the pages to find it.

Thanks for any help you can provide.

QUOTE(lasik @ Feb 11 2008, 10:29 AM) *
When I search by state, I have about 30 stores in Florida.

The stores are not listed correctly in alphabetical order. They seem to be coming up in the order that I entered them in.

Is there anyway to correct this?

Thanks,
lasik

Brian
catlady,

Yes, it can be changed. But it will affect all search types. The default sort order is on the ID field. And it can be changed to the Name field if you wish.

There is a file named: /locator/include/location.class.php and it holds the sorting routines.

The function is named: function order_result and should be on line # 191.

It will look like this:

CODE
default:
   $this->_order = " ORDER BY pref ASC,id";

and you can change it too this:

CODE
default:
   $this->_order = " ORDER BY pref ASC, name ASC";



Depending on the version you have, your file may be encoded and not editable. If so, just open a new trouble ticket in our eSupport Center and attach your file. We will make the changes for you and send it back to you.

Hope this helps.
catlady
Thanks, Brian. Where do I find the files you are talking about? I have version 3.2.

QUOTE(Brian @ Apr 17 2009, 12:27 AM) *
catlady,

Yes, it can be changed. But it will affect all search types. The default sort order is on the ID field. And it can be changed to the Name field if you wish.

There is a file named: /locator/include/location.class.php and it holds the sorting routines.

The function is named: function order_result and should be on line # 191.

It will look like this:

CODE
default:
   $this->_order = " ORDER BY pref ASC,id";

and you can change it too this:

CODE
default:
   $this->_order = " ORDER BY pref ASC, name ASC";



Depending on the version you have, your file may be encoded and not editable. If so, just open a new trouble ticket in our eSupport Center and attach your file. We will make the changes for you and send it back to you.

Hope this helps.

Brian
Look in this folder: /locator/include

The file name is: location.class.php
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.