Changes to sorting functionality in Projects (#50188)

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Steve Guntrip 2024-04-22 12:26:42 +01:00 коммит произвёл GitHub
Родитель bdda804ec2
Коммит e2a3863bac
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
3 изменённых файлов: 10 добавлений и 3 удалений

Двоичные данные
assets/images/help/projects-v2/sort-order-secondary.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 13 KiB

Просмотреть файл

@ -0,0 +1,6 @@
# Issue 14312
# Updates to sorting fields
versions:
fpt: '*'
ghec: '*'
ghes: '>=3.14'

Просмотреть файл

@ -1,10 +1,11 @@
{% data reusables.projects.open-view-menu %}
1. Click **Sort**.
1. Click the field you want to sort by.
1. Optionally, to change the direction of the sort, click the field again.
{% ifversion projects-v2-sorting-update %}1. Optionally, to add a secondary sort, click another field.{% endif %}
1. Optionally, to change the direction of the sort{% ifversion projects-v2-sorting-update %} for either field{% endif %}, click the field again.
![Screenshot of the sort menu. The button to change the direction of the sort is highlighted with an orange outline.](/assets/images/help/projects-v2/sort-order.png)
{% ifversion projects-v2-sorting-update %}![Screenshot of the sort menu. The button to change the direction of the sort for the first sorted field is highlighted with an orange outline.](/assets/images/help/projects-v2/sort-order-secondary.png){% else %}![Screenshot of the sort menu. The button to change the direction of the sort is highlighted with an orange outline.](/assets/images/help/projects-v2/sort-order.png){% endif %}
1. Optionally, to remove a sort, click {% octicon "x" aria-hidden="true" %} **No sorting** at the bottom of the list.
1. Optionally, to remove a sort,{% ifversion projects-v2-sorting-update %} click one of the sorted fields, or{% endif %} {% octicon "x" aria-hidden="true" %} click **No sorting** at the bottom of the list.
Alternatively, open the project command palette by pressing {% data variables.projects.command-palette-shortcut %} and start typing "Sort by."