Community
Participate
Working Groups
I20040817 The Keys' view page columns can be sorted by pressing on the column header. Good! The current sort column should be indicated (visible for the user).
The sort order is currently considers all columns. Selecting a column moves it to the front of the sort order. So if you had [1,2,3,4] as your sort order and then selected [3], you would get a sort order of [3,1,2,4]. I don't think I can get native sort indicators (those little arrow things), and I'm not sure they would be meaningful enough for the type of sorting mechanism there is. Do you have any thoughts on a way of presenting this kind of information to the user? Perhaps numbers next to the column names (seems a bit hokey)?
Adding a hint to the last clicked column header is good enough I think. That you perform the sorting with a preserving sort algo is just another goody that I get ;-) Yes, native indicator isn't supported afaik but you could do it like in Eclipse Hyades: they simply put > and < into the column header.
I'm worried about internationalization issues that might be caused by inserting text before and after the column name. I need to think about this, and ask around a bit.... I guess in the worse case, I could just define a "sorted" and "unsorted" name for each column....
Fixed in CVS. I put "sorted" and "unsorted" names for each column. The primary sort column is displayed with a "sorted" name; the other appear with no sort indicator.
Verified in I200409212000, GTK+ 2.4.9, KDE 3.3.0, Linux 2.6.8.1