# Any one up for a CHALLENGE?

**URL:** <https://www.ruby-forum.com/t/any-one-up-for-a-challenge/141232>\
**Category:** Rails\
**Created:** [June 23, 2008, 10:24pm UTC](https://www.ruby-forum.com/t/any-one-up-for-a-challenge/141232 "2008-06-23T22:24:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![apneram](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/71c47a/32.png) [@apneram](https://www.ruby-forum.com/u/apneram)\
**Post date:** [June 23, 2008, 10:24pm UTC](https://www.ruby-forum.com/t/any-one-up-for-a-challenge/141232/1 "2008-06-23T22:24:34Z")

</div>

Define a simple way to sort the contents of a column upon clicking the  
column name in the web app!!

---

<div class="post-metadata">

**Author:** ![apneram](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/71c47a/32.png) [@apneram](https://www.ruby-forum.com/u/apneram)\
**Post date:** [June 23, 2008, 11:52pm UTC](https://www.ruby-forum.com/t/any-one-up-for-a-challenge/141232/2 "2008-06-23T23:52:51Z")

</div>

On Jun 23, 2008, at 1:24 PM, Apne Ram wrote:

> Define a simple way to sort the contents of a column upon clicking the  
> column name in the web app!!

Client side via javascript…

[http://www.google.com/search?q=javascript+table+sort](http://www.google.com/search?q=javascript+table+sort)

Lots of options.

-philip

---

<div class="post-metadata">

**Author:** ![apneram](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/71c47a/32.png) [@apneram](https://www.ruby-forum.com/u/apneram)\
**Post date:** [June 24, 2008, 1:50am UTC](https://www.ruby-forum.com/t/any-one-up-for-a-challenge/141232/3 "2008-06-24T01:50:29Z")

</div>

Philip H. wrote:

> Lots of options.  
> Nice response ;-). ‘Do your own homework.’

Best regards,  
Bill

---

<div class="post-metadata">

**Author:** ![apneram](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/71c47a/32.png) [@apneram](https://www.ruby-forum.com/u/apneram)\
**Post date:** [June 24, 2008, 1:58am UTC](https://www.ruby-forum.com/t/any-one-up-for-a-challenge/141232/4 "2008-06-24T01:58:58Z")

</div>

Apne Ram wrote:

> Define a simple way to sort the contents of a column upon clicking the  
> column name in the web app!!

There’s no such thing as a simple way to do that. Someone, somewhere,  
had to write a good bit of code to accomplish it. There might be a  
simple _implementation_ for you to choose, such as a Javascript table  
sorter thing-a-ma-bob, but I’ve always went the route of remote  
callbacks to the server to make sure the data aren’t stale. There’s  
nothing terribly hard about it, other than it takes some thought and  
time to code it.

Peace,  
Phillip
