Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Sorting
- *Assign a #[sort] tag at parent list to create a button that sorts top level child nodes*
- *This does not sort child of child nodes*
- ✓ Active - Shortcut for marked items: **ctrl+alt+e**
- ✓ Enable autosorting - Automatically apply sort rules when dynalist reloads
- ✗ Examples
- *Sorts can be specified with ASC (ascension sort) or DES (descension sort)*
- Sort children by tag
- `#[sort|by:tag(#test)|order:asc]`
- - Nodes ONLY with tag `#test` will go to the top of the list (tags like #test3 are not inclusive)
- Sort children by multiple tags
- `#[sort|by:tag(#test)+tag(@office)|order:asc]`
- - Nodes ONLY with both #test AND @office will be sorted to top of list (tags like #test3 are not inclusive)
- By tag with pattern matching
- `#[sort|by:tag(#week*)]`
- - Nodes with wildcard tags from week#* such as #week01, #week02, #week03 are sorted in alphabetical order at top of list
- Sort children by multiple tags with pattern matching
- `#[sort|by:tag(#week*)+tag(#day*)|order:desc+desc]`
- - Sorts by #week* tag first descending, then by #day* in descending order.
- - Example after sorting:
- ✪ `#week22 #day12`
- ✪ `#week22 #day11`
- ✪ `#week10 #day24`
- ✪ `#week10 #day22`
- Pattern matching with "*" can be applied in any position and even multiple times within tag
- `#[sort|by:tag(#a-*-b-*-c-*)|order:asc]`
- Example after sorting:
- ✪ `#a-01-b-01-c-01`
- ✪ `#a-01-b-01-c-02`
- ✪ `#a-01-b-02-c-01`
- ✪ `#a-01-b-02-c-02`
- ✪ `#a-02-b-01-c-01`
- ✪ `#a-02-b-01-c-02`
- ✪ `#a-02-b-02-c-01`
- ✪ `#a-02-b-02-c-02`
- Sort children by item "created" metadate and order ASC
- `#[sort|by:created|order:desc]`
- - When a bulletpoint node is created in dynalist, it is timestamped.
- - This sorts all children so the most recently created ones sit at top (ASC order)
- Sort children by item "last-edited" metadate and order ASC
- `#[sort|by:edited]`
- - When a bulletpoint is edited in dynalist, it is timestamped
- - This sorts all children so most recently edited sits at top (ASC order)
- **@PIOTR, this is sorting the wrong way compared to one above (created-date), please check**
- Sort children by A-Z and order ASC (these are default settings)
- `#[sort]`
- - A would sit at top, Z at bottom of list
- Sort children by A-Z and order DESC
- `#[sort|order:desc]`
- - Z would sit at top, A at bottom of list
- Sort children by numbers and order ASC
- `#[sort|by:number]`
- - 1 sits at top of list, 99 would sit lower
- Sort children by numbers and order DESC
- `#[sort|by:number|order:desc]`
- - 99 sits at top of list, 1 would sit at bottom
- Sort children by colors and order ASC
- `#[sort|by:color]`
- - Color tags order from top of list to bottom sort: RED, ORANGE, YELLOW, GREEN, BLUE, PURPLE
- Sort children by colors and order ASC
- `#[sort|by:color|order:desc]`
- - Color tags order from top of list to bottom sort: PURPLE, BLUE, GREEN, YELLOW, ORANGE, RED
- Sort children by date and order ASC
- `#[sort|by:date]`
- - "!" date tags. Older dates sit at top, newer dates sit at bottom
- Sort children by date and order DESC
- `#[sort|by:date|order:desc]`
- - "!" date tags. Newer dates sit at top, older dates sit at bottom
- Sort children by date + A-Z and order ASC + DESC
- `#[sort|by:date+alpha|order:asc+desc]`
- - "!" Older dates sit near top, then sorted from Z to A order top to bottom.
- - "!" Newer dates sit at bottom
- Sort children by date + A-Z and order DESC + ASC
- `#[sort|by:date+alpha|order:desc+asc]`
- - "!" Newer dates sit at top, then sorted A to Z order top to bottom
- - "!" Older dates sit at bottom
- Sort children by colors + A-Z and order ASC + DESC
- `#[sort|by:color+alpha|order:asc+desc]`
- - Colors are sorted first top to bottom (Red, orange, yellow, green, blue, purple) then by Z to A order top to bottom.
- Sort children by colors + dates and order ASC + DESC
- `#[sort|by:color+date|order:asc+desc]`
- - Colors are sorted first top to bottom (Red, orange, yellow, green, blue, purple) then by Newer-to-Older Dates top-to-bottom
- Sort children by colors + dates + A-Z and order ASC + DESC + ASC
- `#[sort|by:color+date+alpha|order:asc+desc+asc]`
- - First, Colors are sorted first top to bottom (Red,orange, yellow, green, blue, purple)
- - Then, Newer-to-Older dates top-to-bottom
- - Finally, Z-to-A order top-to-bottom
- Sort children by colors + dates + A-Z and order DESC + ASC + ASC
- `#[sort|by:date+color+alpha|order:desc+asc+asc]`
- - First, Newer-to-Older dates sorted top-to-bottom
- - Then, Colors are sorted top-to-bottom (Red,orange, yellow, green, blue, purple)
- - Finally, A-to-Z order top-to-bottom
- Sort a fragment of a list
- - Inside of parent list with children nodes, apply a starting point `#[sort|start|by:color|order:desc]`
- - and an ending point `#[sort|start|by:color|order:desc]`
- - to selectively sort ONLY SOME of the children nodes
- Example:
- ✪ Parent
- ✪✪ this will not be sorted
- ✪✪ this will not be sorted
- ✪✪ `#[sort|start|by:color|order:desc]`
- ✪✪ `<everything here is sorted by color (purple, blue, green, yellow, orange, red order)>`
- ✪✪ `#[sort|end]`
- ✪✪ this will not be sorted
- ✪✪ this will not be sorted
- Auto sorting
- `#[sort|auto|by:date|order:desc] `
- - Apply the `sort` code to automatically sort when dynalist is refreshed.
- **PIOTR, does the system settings at autosort need to be applied here? or does this work individually per bulletpoint → didn't seem to work for me, needs clarification**
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement