Gossamer Forum
Home : Products : DBMan : Customization :

Sorting Problem

Quote Reply
Sorting Problem
When I try to issue a "Sort By:" other than City on my test find : http://www.seekhomes.com/FindHomes.html, I get an error message: 'fatal error: Undefined sort subroutine "main::number_ascend"'.

What am I doing wrong? Please help!
Quote Reply
Re: Sorting Problem In reply to
Your field type is set incorrectly in your .cfg file. You must have "number" instead of "numer." Take out the "b" and you should be okay.


------------------
JPD





Quote Reply
Re: Sorting Problem In reply to
I fixed the "number" but I'm still getting the same error.
Quote Reply
Re: Sorting Problem In reply to
Could it be because it only sorts on "alpha" fields only and the script cannot sort if the field is defined as a "number"? Just a thought.
Quote Reply
Re: Sorting Problem In reply to
It doesn't recognize the word "number" at all. It only recognizes "numer," "alpha" and "date."

It will sort by numerical data, though. There is a subroutine
sub numer_ascend
so if you're sorting by a field that has "numer" set as the field type and the sort order is "ascend," it will sort the data.



------------------
JPD





Quote Reply
Re: Sorting Problem In reply to
Fantastic!! I fixed the "numer" to say "number" in the db.cgi program and now it WORKS!

Thanks for the tip. Your help is once again greatly appreciated.
Quote Reply
Re: Sorting Problem In reply to
I guess that's one way to do it. I would have changed the field type to "numer." Smile

------------------
JPD