Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Sorting problem. Please Help!
Sorting problem. Please Help! [message #27879] |
Mon, 09 August 2010 09:45 |
|
Trouble with Sorting data in GridCtrl. Maybe this bug is not due GridCtrl.
1.During the sorting text column - the number should be sorted as strings. For example, if there are 3 lines -
"3" "1" "123"
- then the string should be sorted in the order
"1" "123" "3",
but actually are in order
- "1" "3" "123".
How do I fix this?
2.If the text column, there are Russian characters, for some reason the sorting algorithm takes this value as a number and get for example this situation:
There are three lines:
"Albert" "Albert Aaaaaaaaaaaaaaaaaaaaa" "Albert Zbiven"
actually they are in order of
"Albert" "Albert Zbiven" "Albert Aaaaaaaaaaaaaaaaaaaaa", although it is clear that this order is incorrect.
For Russian characters even seen an issue where if you sort the letters jump so that about any sort is out. For example last names may go in order
"Иванов Иван", then "Петров Петр" again "Иванов Павел" then "Петров Сергей". That is, it's not a problem right alphabetical order, something deeper, something I do not really understand.
TestCase (compiled from Grid01 of the tutorial) shows both problems. The screenshot can be seen both.
-
Attachment: Shot.png
(Size: 31.69KB, Downloaded 560 times)
-
Attachment: Grid01.zip
(Size: 3.81KB, Downloaded 517 times)
SergeyNikitin<U++>( linux, wine )
{
В В В В under( Ubuntu || Debian || Raspbian );
}
|
|
|
Goto Forum:
Current Time: Fri Apr 19 07:55:29 CEST 2024
Total time taken to generate the page: 0.02847 seconds
|