{ setSelected() if (navigate) searchParam($page.url, 'sort', selected, 'page', 'cursor') }} >
{$t('filter.sort.label')}
{$t('filter.sort.active')}
{$t('filter.sort.hot')}
{#if feature('scaledSort', $site?.version)}
{$t('filter.sort.scaled')}
{/if}
{$t('filter.sort.top.label')}
{$t('filter.sort.new')}
{$t('filter.sort.old')}
{$t('filter.sort.controversial')}
{$t('filter.sort.mostcomments')}
{$t('filter.sort.newcomments')}
{#if selected?.startsWith('Top')}
{ sort = 'TopAll' if (navigate) searchParam($page.url, 'sort', selected, 'page', 'cursor') }} >
{$t('filter.sort.top.time.label')}
{$t('filter.sort.top.time.all')}
{$t('filter.sort.top.time.9months')}
{$t('filter.sort.top.time.6months')}
{$t('filter.sort.top.time.3months')}
{$t('filter.sort.top.time.month')}
{$t('filter.sort.top.time.week')}
{$t('filter.sort.top.time.day')}
{$t('filter.sort.top.time.12hours')}
{$t('filter.sort.top.time.6hours')}
{$t('filter.sort.top.time.hour')}
{/if}