General Example
A general day-to-day nested markdown list.
recursive
=true
sorter
="natural"
markdown
- Shows- Caroons- Simpsons- Family Guy- Anime- Noragami- Black Clover- One Piece- 7 Deadly Sins- Apps- Games- Clash Royale- Brawl Stars- Dumb Ways To Die- Youtube- VLC- Brawl Stars- Editors- VSCode- Atom- Vim- Emacs
markdown
- Apps- Brawl Stars- Games- Brawl Stars- Clash Royale- Dumb Ways To Die- VLC- Youtube- Editors- Atom- Emacs- Vim- VSCode- Shows- Anime- 7 Deadly Sins- Black Clover- Noragami- One Piece- Caroons- Family Guy- Simpsons
Removing Duplicates + Reverse
unique
="exact"
reverse
=true
text
- Hot Dog- Burger- Salad- Burger- Sandwhich
text
- Sandwhich- Salad- Hot Dog- Burger
Numerical Sort
This sort will sort the lines based on the number in each line.
sorter
="numerical"
text
Hello 7, today's your lucky dayYou are our 5000th customer!To recieve your prize of $200Meet me at the dark ally @ 2pm
text
Meet me at the dark ally @ 2pmHello 7, today's your lucky dayTo recieve your prize of $200You are our 5000th customer!
Switch Inner Case Statements
- no options
This is an example of how this program's indentation awareness works.
Note: the content actually being sorted is highlighted, the non-highlighted lines are just there for visual aid.
js
switch (name) {case 'max':console.log('max');break;case 'sam':console.log('sam');break;case 'ava':console.log('ava');break;case 'edna':console.log('edna');break;}
js
switch (name) {case 'ava':console.log('ava');break;case 'edna':console.log('edna');break;case 'max':console.log('max');break;case 'sam':console.log('sam');break;}
Imports
Here we can see how the regex option can help us sort using text that is not at the start of the line.
regex-filter
=/['"]/
js
import react from 'react';import express from 'express';import discord from 'discord.js';import isIsOdd from 'is-is-odd';import boxen from 'boxen';import isOdd from 'is-odd';
js
import boxen from 'boxen';import discord from 'discord.js';import express from 'express';import isIsOdd from 'is-is-odd';import isOdd from 'is-odd';import react from 'react';
Section Starter HTML
This in example which show's the possibilities of section-starter.
Note: the content actually being sorted is highlighted, the non-highlighted lines are just there for visual aid.
section-starter
=/^\t<div/
html
<div><div class="child"><h3>Zachary Garrett</h3><p>Computer Science</p><div class="something">lorem ipsum</div></div><div class="child"><h3>Elijah Tyler</h3><p>Math</p><div class="something">lorem ipsum</div></div><div class="child"><h3>Earl Henry</h3><p>Aerospace</p><div class="something">lorem ipsum</div></div><div class="child"><h3>Herman Reed</h3><p>English</p><div class="something">lorem ipsum</div></div></div>
html
<div><div class="child"><h3>Earl Henry</h3><p>Aerospace</p><div class="something">lorem ipsum</div></div><div class="child"><h3>Elijah Tyler</h3><p>Math</p><div class="something">lorem ipsum</div></div><div class="child"><h3>Herman Reed</h3><p>English</p><div class="something">lorem ipsum</div></div><div class="child"><h3>Zachary Garrett</h3><p>Computer Science</p><div class="something">lorem ipsum</div></div></div>
Sort By 3rd Column
sort-group
="{3}"
text
Sam 18 Male 140Jack 23 Non-Binary 120Niel 16 Female 135Max 17 Male 135Jane 22 Female 100max 17 male 135Jones 17 male 135Lydia N/A N/A 120Mike N/A male N/A
text
Niel 16 Female 135Jane 22 Female 100Sam 18 Male 140Max 17 Male 135Lydia N/A N/A 120Jack 23 Non-Binary 120max 17 male 135Jones 17 male 135Mike N/A male N/A
Sort By 2nd Column (CSV)
field-separator
=","
sort-group
="{2}"
text
Jake,Lil Peep,30Niel,The Neighbourhood,12Max,Arctic Monkeys,72Jo,AJR,65
text
Jo,AJR,65Max,Arctic Monkeys,72Jake,Lil Peep,30Niel,The Neighbourhood,12
Sort By 3rd Column (custom)
sort-group
="{3}"
sort-order
="i:female;non-binary;male;n/a"
text
Sam 18 Male 140Jack 23 Non-Binary 120Niel 16 Female 135Max 17 Male 135Jane 22 Female 100max 17 male 135Jones 17 male 135Lydia N/A N/A 120Mike N/A male N/A
text
Niel 16 Female 135Jane 22 Female 100Jack 23 Non-Binary 120Sam 18 Male 140Max 17 Male 135max 17 male 135Jones 17 male 135Mike N/A male N/ALydia N/A N/A 120
Sort By 4th Column (number)
sort-group
="{4}n"
text
Jake,Lil Peep,30Niel,The Neighbourhood,12Max,Arctic Monkeys,72Jo,AJR,65
text
Niel,The Neighbourhood,12Jake,Lil Peep,30Jo,AJR,65Max,Arctic Monkeys,72
Blank Line Separation
section-seaerator
=/\n\n/
section-rejoiner
="\n\n"
text
Website: YoutubeLink: https://www.youtube.comType: Social MediaAge: 12Website: DiscordLink: https://discord.comType: Social MediaAge: 5Website: InstagramLink: https://www.instagram.comType: Social MediaAge: 18
text
Website: DiscordLink: https://discord.comType: Social MediaAge: 5Website: InstagramLink: https://www.instagram.comType: Social MediaAge: 18Website: YoutubeLink: https://www.youtube.comType: Social MediaAge: 12
Blank Line Separation: Age
Sorts by the number in each section separated by a blank line.
section-separator
=/\n\n/
section-rejoiner
="\n\n"
sorter
="numerical"
text
Website: YoutubeLink: https://www.youtube.comType: Social MediaAge: 12Website: DiscordLink: https://discord.comType: Social MediaAge: 5Website: InstagramLink: https://www.instagram.comType: Social MediaAge: 18
text
Website: DiscordLink: https://discord.comType: Social MediaAge: 5Website: YoutubeLink: https://www.youtube.comType: Social MediaAge: 12Website: InstagramLink: https://www.instagram.comType: Social MediaAge: 18