Changeset 237 for src/halTorrent.cpp


Ignore:
Timestamp:
07/16/07 17:27:24 (13 years ago)
Author:
Eoin
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/halTorrent.cpp

    r236 r237  
    249249} 
    250250 
    251 bool nameLess(const TorrentDetail_ptr left, const TorrentDetail_ptr right) 
    252 { 
    253         return left->filename() < right->filename(); 
     251bool nameLess(const TorrentDetail_ptr& left, const TorrentDetail_ptr& right) 
     252{ 
     253        return left->state() < right->state(); 
     254} 
     255 
     256void TorrentDetails::sort(sortIndex i) const 
     257{ 
     258        std::stable_sort(torrents_.begin(), torrents_.end(), &nameLess); 
    254259} 
    255260 
Note: See TracChangeset for help on using the changeset viewer.