Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #7925

Re: sorting columns

From fulio pen <fuliopen@yahoo.com>
Newsgroups comp.lang.javascript
Subject Re: sorting columns
Date 2011-11-02 07:39 -0700
Organization http://groups.google.com
Message-ID <135b2f01-1ca1-4941-bf0e-088bea8daebc@r2g2000vbj.googlegroups.com> (permalink)
References <f7fca7c8-769a-4339-ae49-bda395338ef3@l12g2000vby.googlegroups.com> <4eb045f2$0$24951$426a74cc@news.free.fr> <0878d6aa-6869-4b4b-a7e9-e77321b989da@h5g2000vbf.googlegroups.com> <4eb13bab$0$16579$426a74cc@news.free.fr>

Show all headers | View raw


On Nov 2, 8:46 am, Elegie <ele...@anonymous.invalid> wrote:
> On 02/11/2011 13:07, fulio pen wrote :
>
> Hello fulio pen,
>
> > Thanks a lot. Yes, this is just a case of simple table sorting.
>
> Thank you for the confirmation. In that case, you would maybe be better
> off finding and using a free script on the Internet. This way, you would
> have access to a fully-tested and supported component. Of course, you
> may use the script that I have posted as well, if you like.
>
> Unfortunately, I am not knowledgeable enough about third party
> components so as to provide you with a good suggestion; but other
> contributors could be more insightful on this matter.
>
> > I am
> > deeply moved by your help. The Chinese characters and pinyin must not
> > be easy, if you are a non-native speaker of the Chinese language.
>
> I would be glad if the script could be of some help to you. I have built
> it using the source code that you have provided, which is why it uses
> the Chinese characters (I have simply copied and pasted them into my
> editor). As a matter of fact, despite my interest for the Chinese
> culture, I cannot read nor speak Chinese, as of these days.
>
> > I've
> > saved the code to separate files, and will study and test it
> > carefully.  Thanks again.
>
> Do not hesitate if you have questions about it. As it is, the code only
> comes with a string case-insensitive ascending sort, but I believe that
> it would be easy to add a descending sort as well, and maybe some sorts
> for other data types (like numbers or dates). The configuration part
> could be improved as well (for instance supoorting a better event model,
> alternating sort algorithms on click events, and so on).
>
> Kind regards,
> Elegie.

Hello Elegie:

I saved the two files as follows:

http://www.pinyinology.com/diaoHao2a/names/names3.html

http://www.pinyinology.com/diaoHao2a/names/util.js

They seem not working. When having time, could you please look at
them. I added two lines to the style section of the html file, to
define the superscript size and the cursor. They may not cause any
problem. I may have made other mistakes when saving them. Thanks again
for your help.

fulio pen

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

sorting columns fulio pen <fuliopen@yahoo.com> - 2011-11-01 06:14 -0700
  Re: sorting columns Elegie <elegie@anonymous.invalid> - 2011-11-01 20:18 +0100
    Re: sorting columns fulio pen <fuliopen@yahoo.com> - 2011-11-02 05:07 -0700
      Re: sorting columns Elegie <elegie@anonymous.invalid> - 2011-11-02 13:46 +0100
        Re: sorting columns fulio pen <fuliopen@yahoo.com> - 2011-11-02 07:39 -0700
          Re: sorting columns Elegie <elegie@anonymous.invalid> - 2011-11-02 16:00 +0100
            Re: sorting columns fulio pen <fuliopen@yahoo.com> - 2011-11-02 11:06 -0700
  Re: sorting columns Dr J R Stockton <reply1144@merlyn.demon.co.uk> - 2011-11-02 19:02 +0000
    Re: sorting columns Elegie <elegie@anonymous.invalid> - 2011-11-03 02:27 +0100
    Re: sorting columns Andreas Bergmaier <andber93@web.de> - 2011-11-03 20:06 +0100
      Re: sorting columns Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-11-03 20:41 +0100
        Re: sorting columns Dr J R Stockton <reply1144@merlyn.demon.co.uk> - 2011-11-04 21:12 +0000
      Re: sorting columns Dr J R Stockton <reply1144@merlyn.demon.co.uk> - 2011-11-04 21:00 +0000
  Re: sorting columns Dr J R Stockton <reply1144@merlyn.demon.co.uk> - 2011-11-03 21:03 +0000

csiph-web