Hi All.
I trying to use:
Qt Code:
  1. struct FLess : public std::binary_function<HASH, HASH, bool>
  2. {
  3. int Col;
  4. static void setCol( int C );
  5.  
  6. inline bool operator()( const HASH &rec1, const HASH &rec2 )
  7. {
  8. return ( rec1.hash.value( Col ) < rec2.hash.value( Col ) );
  9. }
  10. };
To copy to clipboard, switch view to plain text mode 
In programm:
Qt Code:
  1. FLess::setCol( 5 );
  2.  
  3. if (order == Qt::AscendingOrder)
  4. std::sort( Records[i].begin(), Records[i].end(), FLess() );
To copy to clipboard, switch view to plain text mode 
How make sort by Col?
Thanks.