gitlab-org--gitlab-foss/changelogs/unreleased/46750-ci-empty-environment-is-created-even-when-a-job-isn-t-run-when-manual.yml
Andrew Fontaine fa882a674a Sort Environments in Table by Last Updated
Ensure folders push to the top, if both have no last update, sort by
name.

The sorting algorithm should sort in the following priorities:

1. folders first,
2. last updated descending,
3. by name ascending,

the sorting algorithm must:

1. Sort by name ascending,
2. Reverse (sort by name descending),
3. Sort by last deployment ascending,
4. Reverse (last deployment descending, name ascending),
5. Put folders first.

It is done this way, as `underscore`'s sort API is very basic: simple
comparisons, sorting by ascending only.
2019-02-25 09:31:40 -05:00

5 lines
86 B
YAML

---
title: Sort Environments by Last Updated
merge_request: 25260
author:
type: added