diff --git a/journals/2023_01_25.md b/journals/2023_01_25.md index b8dde323..4664fd1f 100644 --- a/journals/2023_01_25.md +++ b/journals/2023_01_25.md @@ -2,4 +2,5 @@ - Group the facet with .key: .value - ``.facet_counts.facet_fields | {"sources": [.sourceUrl as $m | range(0; $m | length; 2) | {($m[.]): $m[(. + 1)]} ]}`` - Group the facet with .key: .value and sort it by value asc - - ``.facet_counts.facet_fields | {"sources": [.sourceUrl as $m | range(0; $m | length; 2) | {($m[.]): $m[(. + 1)]} ]} | [.sources[] | to_entries | add] | sort_by(.value) | reverse | from_entries`` \ No newline at end of file + - ``.facet_counts.facet_fields | {"sources": [.sourceUrl as $m | range(0; $m | length; 2) | {($m[.]): $m[(. + 1)]} ]} | [.sources[] | to_entries | add] | sort_by(.value) | reverse | from_entries`` +- \ No newline at end of file