Tags:
create new tag
, view all tags

Question

I have a table with columns of numbers. The sorting of these columns works fine until I change some of the numbers to be a different color (I use red and green to make some numbers stand out in the table). I have attached a simple table to illustrate the problem. The third column doesn't sort properly (it is sorted as though the numbers are text strings). Is there a way to make this work?

TEST Calls TimeSorted ascending
V5 97 10.1
V7 3077 12.6
V2 550 29.5
V3 303 120.2

Environment

TWiki version: TWikiRelease04x02x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS: MS Windows XP (Pro) SP2
Web Browser: IE (6.0)
Categories: Plugins

-- JimKulikowski - 05 Mar 2008

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

TEST Calls TimeSorted ascending
V5 97
0101
10.1
V7 3077
0126
12.6
V2 550
0295
29.5
V3 303
1202
120.2

-- FranzJosefGigler - 05 Mar 2008

THANKS Franz! In my version of twiki I was unable to set the HIDD and EN macros, but I just put the

"<div style=\"display:none\">" and "</div>" 
strings directly into the table. It sorts now and looks better too!

-- JimKulikowski - 06 Mar 2008

Yet you just need some SSP-wizardry to autocreate the sortable string of the numeric input. -- just kidding. wink

-- FranzJosefGigler - 06 Mar 2008

 
Change status to:
Topic revision: r4 - 2008-03-06 - FranzJosefGigler
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.