Skip to content

Commit

Permalink
sorted arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
max-ostapenko authored Jan 15, 2025
1 parent 087f752 commit 5bd69c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/bigquery_upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const readJsonFiles = (directory) => {
}

const getArray = (value) =>
typeof value === 'string' ? [value] : Array.isArray(value) ? value : []
typeof value === 'string' ? [value] : Array.isArray(value) ? value.sort() : []

const getRuleObject = (value) => {
if (typeof value === 'string') {
Expand Down Expand Up @@ -176,7 +176,7 @@ const main = async () => {
name: key,
categories: technologies[key].cats.map(
(category) => categories[category].name
),
).sort(),
}

;[
Expand Down

0 comments on commit 5bd69c6

Please sign in to comment.