views:

4127

answers:

7

I have to maintain a large number of classic ASP pages, many of which have tabular data with no sort capabilities at all. Whatever order the original developer used in the database query is what you're stuck with.

So I want to to tack on some basic sorting to a bunch of these pages, and I'm doing it all client side with javascript. I already have the basic script done to sort a given table on a given column in a given direction, and it works well as long as the table is limited by certain conventions we follow here.

What I want to do for the UI is just indicate sort direction with the caret character ( ^ ) and ... what? Is there a special character that is the direct opposite of a caret? The letter v won't quite cut it. Alternatively, is there another character pairing I can use?

+4  A: 

I'd use a couple of tiny images. Would look better too.

Alternatively, you can try the Character Map utility that comes with Windows or try looking here.

Another solution I've seen is to use the Wingdings font for symbols. That has a lot fo arrows.

Vilx-
+6  A: 

An upside-down circumflex is called a caron, or a háček.

It has an HTML entity in the TADS Latin-2 extension to HTML: ˇ

Or you can use the unicode U+30C.

Bill Karwin
+27  A: 

There's ▲ (▲) and ▼ (▼)

sblundy
Nice. Same answer as mine, but better wording.
Mark Ransom
Nice reference in the link.
dacracot
+1  A: 

You might be able to use the black triangles, Unicode values U+25b2 and U+25bc. Or the arrows, U+2191 and U+2193.

Mark Ransom
+1  A: 
Max Lybbert
+1  A: 

c# code


     int i = 0;
     char c = '↑';
     i = (int)c;
     Console.WriteLine(i); // prints 8593

     int j = 0;
     char d = '↓';
     j = (int)d;
     Console.WriteLine(j); // prints 8595

shahkalpesh
+1  A: 
Josh Bodily