Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Sorting problem. Please Help!
Re: Sorting problem. Please Help! [message #27889 is a reply to message #27886] |
Mon, 09 August 2010 12:55 |
|
About String Number sorting...
If I use strings "1f" "2f" "3f" "123f" "34f" U++ sorts this as
"1f"
"2f"
"34f"
"123f"
In this case, we can not talk about numbers in a string variable.
I understand that system sorting algorithm - failed, or works in unforeseen circumstances.
So this problem is likely not only GridCtrl. That is, it may appear in other places.
From GridCtrl can solve this problem, relegate sorting in database. How to deal with this in other places - is unclear.
All the same, may be to introduce the sort parameter - numeric data or text?
SergeyNikitin<U++>( linux, wine )
{
under( Ubuntu || Debian || Raspbian );
}
|
|
|
Goto Forum:
Current Time: Tue May 14 01:42:32 CEST 2024
Total time taken to generate the page: 0.02545 seconds
|