Skip to content
Discussion options

You must be logged in to vote

Sort before you do the map; after the map, the data is a collection of arrays instead of the original page objects:

let pages = dv.pages("[[Projet]]");
dv.table([
  "Tâche", "Priorité", "Projets", "Revue"
  ],
  pages
  .where( p => 
    (!p.Responsable || p.Responsable.path=="Moi")
	&& p.Statut == "#État/Projet/1_Actif"
	&& p["Date_de_revue"]
  )
  .sort(p => [p.Date_de_revue, p.Priorité])
  .map( p => [
  	p.file.link, p.Priorité, p.Projets, p.Date_de_revue
  ])
)

Replies: 8 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by M-bot
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@wenlzhang
Comment options

@blacksmithgu
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #267 on July 29, 2021 08:17.