Sort function

Python pattern

The sort($list) function sorts a list of items in ascending order, based on the lexical order of the items.


Apply with the Grit CLI
grit apply sort_fn

Test case

BEFORE
list = [a, c, b, "1,3,4"]
AFTER
list = ["1,3,4", a, b, c]