MCPcopy Create free account
hub / github.com/Redocly/redocly-cli-cookbook / Sorting

Function Sorting

custom-plugins/sorting/sorting.js:9–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7import RuleSortProps from "./rule-sort-props";
8
9export default function Sorting() {
10 return {
11 id: "sorting",
12 rules: {
13 oas3: {
14 "method-sort": RuleSortMethods,
15 "property-sort": RuleSortProps,
16 },
17 },
18 decorators: {
19 oas3: {
20 "tags-alphabetical": SortTagsAlphabetically,
21 "enums-alphabetical": SortEnumsAlphabetically,
22 methods: SortMethods,
23 "properties-alphabetical": SortPropertiesAlphabetically,
24 "properties-required-first": SortPropertiesRequiredFirst,
25 },
26 },
27 };
28}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected