Monday, July 27, 2009

[jQuery] Re: tablesorter, sort values in anchor as numerics

personally i do not understand anything this guy says

back to the topic

i personally will put an extra/custom attribute in <a> like <a ref="39">

then $("a") and sort on the "ref" attribute.

If not mistaken, there is a sorting plugin somewhere or even in jQuery core.
Or you should be able to do it easily

On Mon, Jul 27, 2009 at 9:05 PM, mila <mshneyderman@gmail.com> wrote:

I am sorry, I did not understand your answer.  Do you have a solution
to my problem?

On Jul 26, 3:41 am, 刘永杰 <liuyongjie...@gmail.com> wrote:
> easyer.
>
> 2009/7/25 mila <mshneyder...@gmail.com>
>
>
>
> > I have data that looks like that
>
> > <a href='myURL/myapp?name=myname&param1=val'>23</a>
> > <a href='myURL/myapp?name=hisname&param1=val1'>9</a>
>
> > I need it to be sorted numericaly by values between ></a>.  How do I
> > do that?
>
>

No comments: