function activitySort(struc)

    strucTime = struc.time(struc.unit ~= 0);
    strucUnit = struc.unit(struc.unit ~= 0);
    logic = strucTime > 75098 & strucTime < 256645;
    units = strucUnit(logic)';
    unitVec = strucUnit;
    maxUnit = max(units);
    unit = 1:maxUnit;
    numSpike = zeros(1,maxUnit);
    timeVec = [];
    count = 1;
    for ind = unit
        numSpike(ind) = length(find(units == ind));
    end
    [numSpike unitSort] = sort(numSpike);
    for ind = unitSort
        unitVec(strucUnit == ind) = count;
        newTime = strucTime(strucUnit == ind);
        timeVec = [timeVec newTime'];
        count = count + 1;
    end
    unitVec = sort(unitVec);
    figure
    plot(timeVec, unitVec', '.')
        
end