zfdatagrid / grid

A DataGrid library for Zend Framework
BSD 3-Clause "New" or "Revised" License
10 stars 16 forks source link

Ordering arrow wrong orientation? Vice versa? #878

Closed imonteiro closed 11 years ago

imonteiro commented 11 years ago

Original author: vlatko.b...@gmail.com (March 07, 2010 16:15:50)

In Title bar, order arrows (icons) display

By name, "ascending" picture is correct, but visually I always get it wrong. Somehow, I expect Down to be from A on top to Z on bottom.

I know it can be easily changed, but wanted to hear your opinion.

Original issue: http://code.google.com/p/zfdatagrid/issues/detail?id=203

imonteiro commented 11 years ago

From bento.vi...@gmail.com on March 08, 2010 16:04:19 Hi,

With letters I get it may be a little "confusing".

But if you are working with numbers I expect the arrow down to sort from 10 to 0 and the up arrow from 0 to 10.

You can change this by renaming your pictures :D

Need others opinion to make any change...

Best Regards, Bento Vilas Boas

imonteiro commented 11 years ago

From vlatko.b...@gmail.com on March 08, 2010 16:13:03 Hi,

I figured out the renaming part, just wanted to see what do you (and maybe others) think.

For numbers, I'd expect them to rise also from top down. :-O) I see arrows as a direction the values are sorted, from lesser to larger.

imonteiro commented 11 years ago

From stepin.a...@gmail.com on March 11, 2010 16:49:57 Hi,

if you look at hex values --> an A is "smaller" than F so if you sort this DESC, the correct order should be F (15) to A (10) -> arrow down

imonteiro commented 11 years ago

From vlatko.b...@gmail.com on March 11, 2010 17:45:30 Hi,

I was just trying to figure out what is the first thought when sorting,

What I mean is, if someone tells you to sort A>Z, or 1>9, on an unknown grid/design, would one press arrow down, or arrow up.

For this example (A>Z or 1>9), I'd press arrow down without thinking.

imonteiro commented 11 years ago

From mailsep...@gmx.de on April 07, 2010 14:36:48 Looking at this physically purely, the arrow down pic starts wide and gets thinner. Further more, the human brain always starts analyzing a picture from top left to right bottom, then examining the two other corners. This already convinces me to say that an arrow down sorts from big to small, always being dependend of the viewers interpretation of what values are bigger than others. On integers and letters, this is easy and will be the most popular case. Furthermore this is what we do at our company in all of our products since 10 years and what we can see at microsoft excel or openoffice calc.

Just my two cents.

imonteiro commented 11 years ago

From vlatko.b...@gmail.com on April 07, 2010 14:50:38 Hi,

Maybe a nice addition to the grid might be the ability to display different pics for sorting different types of column data.

Like, one picture for sorting numbers, and different one for sorting strings. And maybe it can even be configurable (on class level and on instance level), so we can set custom pics for custom columns. For example, a number can represent e.g. height, but the surface as well, so different pics can be used.