anchor.diff:                            _statisticsBloc.add(
                               StatisticsFilter(
                                 tautulliId: value,
  -                              statsType: _sortByDuration ? 'duration' : 'plays',
  +                              statsType: _statsType,
                                 timeRange: _timeRange,
                               ),
                             );
  
positive.code:             });
            }
          },
          child: IconButton(
            icon: FaIcon(
              FontAwesomeIcons.clock,
              color: !_statisticsLoaded
                  ? Theme.of(context).disabledColor
                  : _sortByDuration
                      ? PlexColorPalette.gamboge
                      : TautulliColorPalette.not_white,
            ),
            tooltip: 'Sort by duration',
            onPressed: _statisticsLoaded
                ? () {
                    setState(() {
                      _sortByDuration = !_sortByDuration;
                    });
                    _statisticsBloc.add(
                      StatisticsFilter(
                        tautulliId: _tautulliId,
                        statsType: _sortByDuration ? 'duration' : 'plays',
                        timeRange: _timeRange,
                      ),
                    );
                  }
                : null,
          ),
        ),
        PopupMenuButton(
  
negative.code:                         failure: state.failure,
                          statisticsAddedEvent: StatisticsFilter(
                            tautulliId: _tautulliId,
                            statsType: _statsType,
                          ),
                        ),
                        Expanded(child: const SizedBox()),
  