operationsSorter config

This commit is contained in:
Anna Bodnia
2017-04-18 19:06:15 +03:00
parent 4b984e3c42
commit 8e64c866e8
6 changed files with 40 additions and 29 deletions

View File

@@ -559,3 +559,10 @@ export const btoa = (str) => {
return buffer.toString("base64")
}
export const sorters = {
operationsSorter: {
alpha: (a, b) => a.get("path").localeCompare(b.get("path")),
method: (a, b) => a.get("method").localeCompare(b.get("method"))
}
}