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 » Community » Newbie corner » Sorting a ValueArray ?
Re: Sorting a ValueArray ? [message #42921 is a reply to message #42916] Mon, 14 April 2014 17:16 Go to previous messageGo to previous message
mingodad is currently offline  mingodad
Messages: 53
Registered: February 2008
Location: Spain
Member
After reading your answer and thinking a bit I've got this code to work:
static bool CompareGetDistances(Value &a, Value &b)
{
	return a[5] < b[5];
}
...
    ValueArray &rows = SomeValuaArrayOfValueMap();
    Vector<Value> &vv = const_cast< Vector<Value>& >(rows.Get());
    Sort(vv, CompareGetDistances);
...


Thanks for your help !
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Testscatter2 issue
Next Topic: Convert C# code to U++?
Goto Forum:
  


Current Time: Sun Apr 27 03:07:30 CEST 2025

Total time taken to generate the page: 0.01025 seconds