widgetmodel/alfwidgetmodel/src/alfsort.cpp
changeset 3 4526337fb576
parent 0 e83bab7cf002
equal deleted inserted replaced
2:b1a1f09f9110 3:4526337fb576
    19 //INCLUDES
    19 //INCLUDES
    20 #include <e32std.h>
    20 #include <e32std.h>
    21 #include <alf/ialfmap.h>
    21 #include <alf/ialfmap.h>
    22 #include <alf/alfvarianttype.h>
    22 #include <alf/alfvarianttype.h>
    23 #include <alf/ialfsortfunction.h>
    23 #include <alf/ialfsortfunction.h>
    24 #include "alf/alfperf.h"
    24 //#include "alf/alfperf.h"
    25 #include "alfsort.h"
    25 #include "alfsort.h"
    26 
    26 
    27 using namespace Alf;
    27 using namespace Alf;
    28 
    28 
    29 /**
    29 /**
   168 // ---------------------------------------------------------------------------
   168 // ---------------------------------------------------------------------------
   169 //
   169 //
   170 void AlfSort::sort(IAlfVariantType** aArr, uint aCount,
   170 void AlfSort::sort(IAlfVariantType** aArr, uint aCount,
   171                    const IAlfSortFunction& aSortFunction )
   171                    const IAlfSortFunction& aSortFunction )
   172     {
   172     {
   173     ALF_PERF_START( perfdata, "AlfSort-Sort-Sorting")
   173     //ALF_PERF_START( perfdata, "AlfSort-Sort-Sorting")
   174     AlfSortKey key(aSortFunction, aArr, aCount);
   174     AlfSortKey key(aSortFunction, aArr, aCount);
   175     AlfSortSwap swap(aArr, aCount);
   175     AlfSortSwap swap(aArr, aCount);
   176     User::QuickSort( aCount, key, swap );
   176     User::QuickSort( aCount, key, swap );
   177     ALF_PERF_STOP( perfdata, "AlfSort-Sort-Sorting")
   177     //ALF_PERF_STOP( perfdata, "AlfSort-Sort-Sorting")
   178     }
   178     }
   179 
   179