[jQuery] Re: tablesorter - Force Null / Empty Cells to the Bottom?

2009-03-24 Thread MorningZ
Never said it was a "ready for production with a zillion rows"... just call it a "proof of concept" that tablesorter is *very* flexible, in fact I would call it the most flexible plugin I've seen in the 15 months or so i've been into jQuery.. given more time, and the need for me to use it, t

[jQuery] Re: tablesorter - Force Null / Empty Cells to the Bottom?

2009-03-24 Thread aquaone
impressive but has some flaws (large numbers, sorting w/o clicking headers, etc). not a complete fix but definitely a 95+% solution -- neat! aquaone On Tue, Mar 24, 2009 at 00:00, MorningZ wrote: > > Not the prettiest code i've ever written, but: > > 1) It works :-) > 2) Didn't touch one singl

[jQuery] Re: tablesorter - Force Null / Empty Cells to the Bottom?

2009-03-24 Thread MorningZ
Not the prettiest code i've ever written, but: 1) It works :-) 2) Didn't touch one single character in tablesorter.js http://paste.pocoo.org/show/109306/ (Make sure you are viewing it in Firefox with FireBug going, or comment out the "console.log"-s and set Tablesorter's option of "debug" to "f

[jQuery] Re: tablesorter - Force Null / Empty Cells to the Bottom?

2009-03-23 Thread Flight553
> you were on the right track with the ".addParser" method but there's > no need to edit it inside the core code Ok, I'll bite. How? addParser() just lets you determine one value that goes to sortnumeric(a, b) or sorttext(a, b). Those methods are designed to put a value on top when sorting one d

[jQuery] Re: tablesorter - Force Null / Empty Cells to the Bottom?

2009-03-23 Thread MorningZ
"I don't think a custom parser can "always force null data to the bottom." Maybe it's outside your skill level, but it is *definitely* do-able without touching one single character of code inside tablesorter.js you were on the right track with the ".addParser" method but there's no need to edit

[jQuery] Re: tablesorter - Force Null / Empty Cells to the Bottom?

2009-03-23 Thread Ptang
On Mar 13, 5:52 am, MorningZ wrote: > A custom parser would *definitely* handle this On Mar 13, 5:52 am, MorningZ wrote: > A custom parser would *definitely* handle this I don't think a custom parser can "always force null data to the bottom." The custom parsers just normalize cell conten

[jQuery] Re: tablesorter - Force Null / Empty Cells to the Bottom?

2009-03-23 Thread Ptang
On Mar 13, 5:52 am, MorningZ wrote: > A custom parser would *definitely* handle this I don't think a custom parser can "always force null data to the bottom." The custom parsers just normalize cell contents into "numeric" or "text" format and that result is then sent on to the sorting routine

[jQuery] Re: tablesorter - Force Null / Empty Cells to the Bottom?

2009-03-13 Thread MorningZ
A custom parser would *definitely* handle this I could write it up if i had an example of the HTML On Mar 12, 6:45 pm, Big Mad Kev wrote: > Yep thats it basic numeric sort with nulls on bottom. > > From what I have read I don't think a parser will help unless I've > misunderstood > > Thanks for

[jQuery] Re: tablesorter - Force Null / Empty Cells to the Bottom?

2009-03-12 Thread Big Mad Kev
Yep thats it basic numeric sort with nulls on bottom. >From what I have read I don't think a parser will help unless I've misunderstood Thanks for your quick reply. On Mar 12, 10:08 pm, aquaone wrote: > You could define your own parser to do this. Are you looking for a basic > numeric sort wit

[jQuery] Re: tablesorter - Force Null / Empty Cells to the Bottom?

2009-03-12 Thread aquaone
You could define your own parser to do this. Are you looking for a basic numeric sort with nulls on bottom? lexicographical sort? ..? stephen On Thu, Mar 12, 2009 at 11:52, Big Mad Kev wrote: > > Good Morning / Afternoon / Evening, > > Using the tableSorter does anyone know if it's possible to