Files
harbour-core/harbour/contrib/hbzlib/zipcollections.cpp
2002-01-26 00:35:47 +00:00

27 lines
812 B
C++

// ZipCollections.cpp:
// Part of the ZipArchive library
//
// Copyright (C) 2000 - 2001 Tadeusz Dracz.
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// For the licensing details see the file License.txt
////////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "zipcollections.h"
//************************* CZipWordArray ****************************
void CZipWordArray::Sort(bool bAscending)
{
if (bAscending)
std::sort (begin (), end (), std::less<WORD> ());
else
std::sort (begin (), end (), std::greater<WORD> ());
}