From 71c673ec6689f8a1e437259de9e353b414d99b2a Mon Sep 17 00:00:00 2001 From: Matthias Eckert Date: Wed, 25 Jan 2023 13:10:32 +0100 Subject: [PATCH] Auto saved by Logseq --- journals/2023_01_25.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/journals/2023_01_25.md b/journals/2023_01_25.md index 4664fd1f..a58b91d8 100644 --- a/journals/2023_01_25.md +++ b/journals/2023_01_25.md @@ -3,4 +3,5 @@ - ``.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 + - Group the facet with .key: .value and sort it by value asc as TSV + - ``.facet_counts.facet_fields | {"sources": [.sourceUrl as $m | range(0; $m | length; 2) | {($m[.]): $m[(. + 1)]} ]} | [.sources[] | to_entries | add] | sort_by(.value) | reverse[] | join("\t")`` \ No newline at end of file