mirror of
https://github.com/insin/control-panel-for-twitter.git
synced 2025-06-18 22:55:32 -04:00
13 lines
249 B
JavaScript
13 lines
249 B
JavaScript
function sortProperties(locale) {
|
|
let entries = Object.entries(locale)
|
|
entries.sort(([a], [b]) => {
|
|
if (a < b) return -1
|
|
if (a > b) return 1
|
|
return 0
|
|
})
|
|
return Object.fromEntries(entries)
|
|
}
|
|
|
|
module.exports = {
|
|
sortProperties,
|
|
} |