Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
sergeynikitin is currently offline  sergeynikitin
Messages: 748
Registered: January 2008
Location: Moscow, Russia
Contributor

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 );
}
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: DropGrid and Background Colors
Next Topic: GridCtrl::Clear() doesn't take into account SetFixedRows(2)
Goto Forum:
  


Current Time: Tue May 14 01:42:32 CEST 2024

Total time taken to generate the page: 0.02545 seconds