Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [socrates] Allow sorting links dynamically by price via category.html and search.cgi

Quote Reply
Re: [socrates] Allow sorting links dynamically by price via category.html and search.cgi In reply to
Hey socrates,

I think Andy gave the desired repy, just wanted to add my bit of comment.
Are you using a char/varchar field for your prices?
I would expect FLOAT, REAL, DOUBLE or anything like that to sort correctly.
If so I suggest switching to one of the above field types and if you want to have , instead of . in your output you should modify it with a global.

And maybe I misunderstood something but I would not recommend sorting by price combined with build_search_gb enabled.

Regards

Niko
Subject Author Views Date
Thread Allow sorting links dynamically by price via category.html and search.cgi socrates 5136 Mar 25, 2017, 7:55 PM
Thread Re: [socrates] Allow sorting links dynamically by price via category.html and search.cgi
Andy 5004 Mar 26, 2017, 6:30 AM
Thread Re: [Andy] Allow sorting links dynamically by price via category.html and search.cgi
socrates 4992 Mar 27, 2017, 11:18 PM
Post Re: [socrates] Allow sorting links dynamically by price via category.html and search.cgi
Andy 4986 Mar 27, 2017, 11:33 PM
Thread Re: [socrates] Allow sorting links dynamically by price via category.html and search.cgi
el noe 4973 Mar 30, 2017, 7:06 AM
Post Re: [el noe] Allow sorting links dynamically by price via category.html and search.cgi
socrates 4707 Apr 24, 2017, 9:07 PM