ShareShortcuts

Sort Whole #s

Real simple idea

chefchip1965
Fork “Sort Whole #s”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so chefchip1965 gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
70K
Saved
2
Actions
17
Category
Utilities
Version
1.1
Language
EN

Real simple idea. Basically, the numbers are used to adjust the current date by days converting them into dates then formatted to yy/MM/dd. Filter files then formatted back to MM/dd/yy (for some reason I do not understand, to get this format the actual format is MM/yy/dd)

What's New

Version 1.1

Fixed

Version History
1.1 Mar 3, 2019

Fixed

1.0 Mar 3, 2019

First release

What it does

17 actions
  1. Text
  2. Set Variable
    Original
  3. Split Text
  4. Repeat with Each
  5. Date
  6. Adjust Date
  7. Format Date
  8. Add to Variable
  9. Get Variable
  10. Filter Files
  11. Repeat with Each
  12. Format Date
  13. Repeat with Each
  14. Get Variable
  15. Get Time Between Dates
  16. Add to Variable
  17. Show Result

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/calendar'
#define color taupe
#define glyph calculator

@Original = "17\n1\n3\n100\n-1\n-50\n"
splitText(nil)

for _ in nil {
	currentDate()
	adjustDate("", "")
	formatTimestamp("", "Custom", "None", "yy/MM/dd")
	@Numbers = nil
}
// TODO: Get Variable not supported: Assign variable here to '@Numbers'.
filterFiles(nil, "Name", "Z to A")

for _ in nil {
	formatDate("", "Custom", "MM/yy/dd")
}

for _ in nil {
	// TODO: Get Variable not supported: Assign variable here to '@RepeatItem'.
	rawAction("is.workflow.actions.gettimebetweendates", {
		"WFTimeUntilCustomDate": "{CurrentDate}",
		"WFTimeUntilReferenceDate": "Other",
		"WFTimeUntilUnit": "Days"
	})
	@Sorted = nil
}
show("Original list\n{@Original}\n\nSorted\n{@Sorted}")
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by chefchip1965

See All

You Might Also Like

See All
Advertisement