OrderOption
Enum to determine the order sequence of a sorted list. When used to order a product list, it is often used in combination with the SortOption.
enum OrderOption {
asc = 'ASC',
desc = 'DESC',
}Example (Sorting by price)
Ascending (ASC)
Tomato
4,99 €
01.01.2020
Ananas
12,99 €
31.12.2020
Orange
20,99 €
02.05.2020
Descending (DESC)
Orange
20,99 €
02.05.2020
Ananas
12,99 €
31.12.2020
Tomato
4,99 €
01.01.2020