ListIt sort breaks at 10,000

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
kkreitz
Forum Members
Forum Members
Posts: 48
Joined: Fri Jun 25, 2010 3:06 am

ListIt sort breaks at 10,000

Post by kkreitz »

I have a rental property website that sorts properties by rent. Highest first to lowest last. All worked as it should until a property with the rent amount greater than 10,000 was placed down in the mix when it should have been at the top. I am assuming there is somewhere within the module that sets the number of digits for sorting, if this is the case can someone point me in the right direction? If not, any help would be appreciated.


Cms Version:1.12.1
ListIt2: 1.4.1
chandra

Re: ListIt sort breaks at 10,000

Post by chandra »

Have you set a parameter pagelimit?

If no pls try to set this value like you want.

By the way ... heared it sometimes ago from module developer - ListIt wasn't really coded to manage such a mass of data.
kkreitz
Forum Members
Forum Members
Posts: 48
Joined: Fri Jun 25, 2010 3:06 am

Re: ListIt sort breaks at 10,000

Post by kkreitz »

Thanks Chandra, I see that I was not clear. The sort does not work when the rent exceeds $10,000, not 10,000 properties.
chandra

Re: ListIt sort breaks at 10,000

Post by chandra »

Sorry, need glasses 8) .

How do you input the rent? "$10,000" or "$10000"?

If first one sorting will fail.
kkreitz
Forum Members
Forum Members
Posts: 48
Joined: Fri Jun 25, 2010 3:06 am

Re: ListIt sort breaks at 10,000

Post by kkreitz »

It is entered in it's box on the item as 10,000. I will export the csv and remove all ,'s to see if that clears this up.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: ListIt sort breaks at 10,000

Post by calguy1000 »

The content of all fields in LISE is a string, and therefore LISE does alphanumeric sorting, not integer sorting.

so '1' < '9' and '10' < '9' and '10000' < '9'
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
kkreitz
Forum Members
Forum Members
Posts: 48
Joined: Fri Jun 25, 2010 3:06 am

Re: ListIt sort breaks at 10,000

Post by kkreitz »

Thank you, if this is the case then it seems that I could create a sort field that will not be published and put a 0 in front of all rent that ranges between 999 and 10,000, since in that area there will be nothing below $1,000.
Locked

Return to “Modules/Add-Ons”