/****************************************************************************
**  SCALASCA    http://www.scalasca.org/                                   **
*****************************************************************************
**  Copyright (c) 1998-2012                                                **
**  Forschungszentrum Juelich GmbH, Juelich Supercomputing Centre          **
**                                                                         **
**  Copyright (c) 2010-2012                                                **
**  German Research School for Simulation Sciences GmbH,                   **
**  Laboratory for Parallel Programming                                    **
**                                                                         **
**  See the file COPYRIGHT in the package base directory for details       **
****************************************************************************/

#include <StatData.h>

using namespace pearl;

static stat_t  sort_att = STAT_REL;

void set_sort_att (stat_t att) {
  sort_att = att;  
}

bool operator< (const statistic_data& a, const statistic_data& b) {
  if (sort_att == STAT_REL) return (a.rel < b.rel);
  if (sort_att == STAT_ABS) return (a.abs < b.abs);
  return false;
}
