UNPKG

@vuepress/shared-utils

Version:
11 lines (10 loc) 196 B
"use strict"; module.exports = function sort(arr) { return arr.sort((a, b) => { if (a < b) return -1; if (a > b) return 1; return 0; }); };