2 answers
0 votes
Asked by Ponch316, on 3/3/10 in
How to make Paginator sort Strings as Ints
Hello,
I have a list of basketball players, whose numbers go from '00' to '99'. For this reason, I'm saving them as varchar on my database.
When I try to sort by Player.number, MySQL obviously sorts as varchar (1, 11, 12, 2, 20, ...).
Is there a way...
0 answers
0 votes
Asked by gregwhitworth, 1 week, 2 days ago in
Paginator use LIKE when sorting
I want the paginator()-sort() to use LIKE instead of merely the field name. Since my field has multiple zip codes per user within it, it needs to 'SEARCH' for them rather than just sorting, it needs to search and then sort.
Here is my index() code...
<< previous next >>